Searched refs:createMachine (Results 1 – 8 of 8) sorted by relevance
/third_party/typescript/tests/baselines/reference/ |
D | contextualSignatureConditionalTypeInstantiationUsingDefault.symbols | 24 declare function createMachine< 25 >createMachine : Symbol(createMachine, Decl(contextualSignatureConditionalTypeInstantiationUsingDef… 57 createMachine({}, (ev) => { 58 >createMachine : Symbol(createMachine, Decl(contextualSignatureConditionalTypeInstantiationUsingDef…
|
D | contextualSignatureConditionalTypeInstantiationUsingDefault.types | 20 declare function createMachine< 21 >createMachine : <TTypesMeta extends TypegenDisabled | TypegenEnabled = TypegenDisabled>(config: { … 43 createMachine({}, (ev) => { 44 >createMachine({}, (ev) => { ev.type; // should be `string`}) : void 45 >createMachine : <TTypesMeta extends TypegenDisabled | TypegenEnabled = TypegenDisabled>(config: { …
|
D | varianceAnnotations.js | 151 declare function createMachine<TEvent extends { type: string }>(action: ActionObject<TEvent>): Stat… 155 const machine = createMachine({} as any); 161 createMachine<{ type: "PLAY"; value: number } | { type: "RESET" }>(qq); // Error 200 var machine = createMachine({}); 202 createMachine(qq); // Error 318 declare function createMachine<TEvent extends {
|
D | varianceAnnotations.types | 315 declare function createMachine<TEvent extends { type: string }>(action: ActionObject<TEvent>): Stat… 316 >createMachine : <TEvent extends { type: string; }>(action: ActionObject<TEvent>) => StateNode<any,… 324 const machine = createMachine({} as any); 326 >createMachine({} as any) : StateNode<any, any> 327 >createMachine : <TEvent extends { type: string; }>(action: ActionObject<TEvent>) => StateNode<any,… 341 createMachine<{ type: "PLAY"; value: number } | { type: "RESET" }>(qq); // Error 342 >createMachine<{ type: "PLAY"; value: number } | { type: "RESET" }>(qq) : StateNode<any, any> 343 >createMachine : <TEvent extends { type: string; }>(action: ActionObject<TEvent>) => StateNode<any,…
|
D | varianceAnnotations.symbols | 414 declare function createMachine<TEvent extends { type: string }>(action: ActionObject<TEvent>): Stat… 415 >createMachine : Symbol(createMachine, Decl(varianceAnnotations.ts, 147, 1)) 430 const machine = createMachine({} as any); 432 >createMachine : Symbol(createMachine, Decl(varianceAnnotations.ts, 147, 1)) 444 createMachine<{ type: "PLAY"; value: number } | { type: "RESET" }>(qq); // Error 445 >createMachine : Symbol(createMachine, Decl(varianceAnnotations.ts, 147, 1))
|
D | varianceAnnotations.errors.txt | 307 …declare function createMachine<TEvent extends { type: string }>(action: ActionObject<TEvent>): Sta… 311 const machine = createMachine({} as any); 317 createMachine<{ type: "PLAY"; value: number } | { type: "RESET" }>(qq); // Error
|
/third_party/typescript/tests/cases/compiler/ |
D | contextualSignatureConditionalTypeInstantiationUsingDefault.ts | 15 declare function createMachine< function 26 createMachine({}, (ev) => {
|
/third_party/typescript/tests/cases/conformance/types/typeParameters/typeParameterLists/ |
D | varianceAnnotations.ts | 153 declare function createMachine<TEvent extends { type: string }>(action: ActionObject<TEvent>): Stat… function 157 const machine = createMachine({} as any); 163 createMachine<{ type: "PLAY"; value: number } | { type: "RESET" }>(qq); // Error
|