mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
refactor(store): v2 (#362)
This commit is contained in:
@@ -1 +1 @@
|
||||
export function noop(): void {}
|
||||
export function noop(..._args: unknown[]): void {}
|
||||
|
||||
@@ -13,3 +13,6 @@ export type Mixin<Base, Result> = <T extends Constructor<Base>>(Base: T) => T &
|
||||
export type Falsy<T> = T | false | null | undefined;
|
||||
|
||||
export type EnsureFunction<T> = T extends (...args: any[]) => any ? T : never;
|
||||
|
||||
/** Flatten intersection types for better IDE display. */
|
||||
export type Simplify<T> = T extends (...args: any[]) => any ? T : { [K in keyof T]: T[K] } & {};
|
||||
|
||||
Reference in New Issue
Block a user