mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
581 B
Diff
12 lines
581 B
Diff
--- old.coAndContraVariantInferences.js
|
|
+++ new.coAndContraVariantInferences.js
|
|
@@= skipped -69, +69 lines =@@
|
|
name: TName;
|
|
payload: TPayload;
|
|
}
|
|
-declare const actionA: Action<"ACTION_A", string>;
|
|
-declare const actionB: Action<"ACTION_B", boolean>;
|
|
+declare const actionA: Action<'ACTION_A', string>;
|
|
+declare const actionB: Action<'ACTION_B', boolean>;
|
|
declare function call<TName extends string, TPayload>(action: Action<TName, TPayload>, fn: (action: Action<TName, TPayload>) => any): void;
|
|
declare const printFn: (action: typeof actionA | typeof actionB) => void;
|