twoslash
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -1,5 +0,5 @@ | ||
import { C as CreateTwoSlashOptions, c as TwoSlashInstance, b as TwoSlashOptions, a as TwoSlashReturn } from './shared/twoslash.8bff23d5.js'; | ||
export { i as CompilerOptionDeclaration, H as HandbookOptions, j as NodeBase, n as NodeCompletion, o as NodeError, u as NodeErrorWithoutPosition, l as NodeHighlight, k as NodeHover, m as NodeQuery, N as NodeStartLength, p as NodeTag, t as NodeWithoutPosition, q as ParsedFlagNotation, P as Position, R as Range, T as TwoSlashExecuteOptions, g as TwoSlashFunction, s as TwoSlashNode, h as TwoSlashReturnMeta, f as TwoslashError, d as createPositionConverter, w as defaultCompilerOptions, x as defaultHandbookOptions, r as removeCodeRanges, e as resolveNodePositions, v as validateCodeForErrors } from './shared/twoslash.8bff23d5.js'; | ||
import { C as CreateTwoSlashOptions, c as TwoSlashInstance, b as TwoSlashOptions, a as TwoSlashReturn } from './shared/twoslash.33bd3d4a.js'; | ||
export { H as HandbookOptions, k as NodeBase, o as NodeCompletion, p as NodeError, u as NodeErrorWithoutPosition, m as NodeHighlight, l as NodeHover, n as NodeQuery, N as NodeStartLength, q as NodeTag, t as NodeWithoutPosition, y as ParsedFlagNotation, P as Position, R as Range, w as TS, T as TwoSlashExecuteOptions, j as TwoSlashFunction, s as TwoSlashNode, x as TwoSlashReturnMeta, i as TwoslashError, V as VirtualFile, d as createPositionConverter, z as defaultCompilerOptions, A as defaultHandbookOptions, f as findCutNotations, e as findFlagNotations, g as findQueryMarkers, r as removeCodeRanges, h as resolveNodePositions, v as validateCodeForErrors } from './shared/twoslash.33bd3d4a.js'; | ||
import '@typescript/vfs'; | ||
import 'typescript'; | ||
import '@typescript/vfs'; | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { T as TwoSlashExecuteOptions, H as HandbookOptions, a as TwoSlashReturn, b as TwoSlashOptions, c as TwoSlashInstance } from './shared/twoslash.8bff23d5.js'; | ||
export { i as CompilerOptionDeclaration, C as CreateTwoSlashOptions, j as NodeBase, n as NodeCompletion, o as NodeError, u as NodeErrorWithoutPosition, l as NodeHighlight, k as NodeHover, m as NodeQuery, N as NodeStartLength, p as NodeTag, t as NodeWithoutPosition, q as ParsedFlagNotation, P as Position, R as Range, g as TwoSlashFunction, s as TwoSlashNode, h as TwoSlashReturnMeta, f as TwoslashError, d as createPositionConverter, w as defaultCompilerOptions, x as defaultHandbookOptions, r as removeCodeRanges, e as resolveNodePositions, v as validateCodeForErrors } from './shared/twoslash.8bff23d5.js'; | ||
import { T as TwoSlashExecuteOptions, H as HandbookOptions, a as TwoSlashReturn, b as TwoSlashOptions, c as TwoSlashInstance } from './shared/twoslash.33bd3d4a.js'; | ||
export { C as CreateTwoSlashOptions, k as NodeBase, o as NodeCompletion, p as NodeError, u as NodeErrorWithoutPosition, m as NodeHighlight, l as NodeHover, n as NodeQuery, N as NodeStartLength, q as NodeTag, t as NodeWithoutPosition, y as ParsedFlagNotation, P as Position, R as Range, w as TS, j as TwoSlashFunction, s as TwoSlashNode, x as TwoSlashReturnMeta, i as TwoslashError, V as VirtualFile, d as createPositionConverter, z as defaultCompilerOptions, A as defaultHandbookOptions, f as findCutNotations, e as findFlagNotations, g as findQueryMarkers, r as removeCodeRanges, h as resolveNodePositions, v as validateCodeForErrors } from './shared/twoslash.33bd3d4a.js'; | ||
import * as typescript from 'typescript'; | ||
@@ -101,5 +101,11 @@ import { CompilerOptions } from 'typescript'; | ||
declare function twoslasher(code: string, lang: string, opts?: TwoSlashOptions): TwoSlashReturn; | ||
/** | ||
* Create a TwoSlash instance with cached TS environments | ||
*/ | ||
declare function createTwoSlasher(opts?: TwoSlashOptions): TwoSlashInstance; | ||
/** | ||
* Get type results from a code sample | ||
*/ | ||
declare function twoslasher(code: string, lang: string, opts?: TwoSlashOptions): TwoSlashReturn; | ||
/** | ||
* Compatability wrapper to align with `@typescript/twoslash`'s input/output | ||
@@ -106,0 +112,0 @@ * |
{ | ||
"name": "twoslash", | ||
"type": "module", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Markup for generating rich type information in your documentations ahead of time", | ||
@@ -6,0 +6,0 @@ "author": "TypeScript team", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
133074
2813
0