Skip to content

Commit 1626812

Browse files
committed
updates
1 parent a634a20 commit 1626812

File tree

19 files changed

+40
-491
lines changed

19 files changed

+40
-491
lines changed

example/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// deno-fmt-ignore-file
2+
13
import { Static, Runtime, Compile } from '@sinclair/parsebox'
24
import { Syntax } from './typebox/compiled/index.ts'
35
import { ParseJson } from './json/index.ts'
@@ -68,7 +70,6 @@ console.log(Json)
6870
// Example: Expression | Interpreted
6971
//
7072
// ------------------------------------------------------------------
71-
// prettier-ignore
7273
{
7374
type Result = Static.Parse<Expr, 'x * (y + z)'> // hover
7475

@@ -123,7 +124,6 @@ console.log(Json)
123124
// semantic actions must be implemented manually.
124125
//
125126
// ------------------------------------------------------------------
126-
// prettier-ignore
127127
{
128128
const ListModule = new Runtime.Module({
129129
List: Runtime.Union([

example/typebox/compiled/mapping.ts

+1-156
Large diffs are not rendered by default.

example/typebox/compiled/syntax.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ THE SOFTWARE.
2626
2727
---------------------------------------------------------------------------*/
2828

29+
// deno-fmt-ignore-file
2930
// deno-lint-ignore-file
3031

3132
import * as T from 'npm:@sinclair/typebox'
@@ -39,7 +40,6 @@ export function NoInfer<Context extends Record<PropertyKey, T.TSchema>, Code ext
3940
/** `[Experimental]` Parses a TypeScript annotation into a TypeBox type but does not infer schematics */
4041
export function NoInfer<Code extends string>(code: Code, options?: T.SchemaOptions): T.TSchema
4142
/** `[Experimental]` Parses a TypeScript annotation into a TypeBox type but does not infer schematics */
42-
// prettier-ignore
4343
export function NoInfer(...args: any[]): T.TSchema {
4444
const withContext = typeof args[0] === 'string' ? false : true
4545
const [context, code, options] = withContext ? [args[0], args[1], args[2] || {}] : [{}, args[0], args[1] || {}]
@@ -50,7 +50,6 @@ export function NoInfer(...args: any[]): T.TSchema {
5050
}
5151

5252
/** `[Experimental]` Parses a TypeScript annotation into a TypeBox type */
53-
// prettier-ignore
5453
export type TSyntax<Context extends Record<PropertyKey, T.TSchema>, Code extends string> = (
5554
TType<Code, Context> extends [infer Type extends T.TSchema, string] ? Type : T.TNever
5655
)

0 commit comments

Comments
 (0)