-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export * from "./react-native-firebase"; | ||
export * from "./react-native-reanimated"; | ||
export * from "./ripple"; | ||
export * as worklets from "./worklets"; | ||
export { worklets } from "./worklets"; | ||
//# sourceMappingURL=index.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
import type { empty as baseEmpty, types } from "typescript-misc"; | ||
/** | ||
* Checks if value type is empty. | ||
* @param value - Value. | ||
* @returns _True_ if value type is empty, _false_ otherwise. | ||
*/ | ||
export declare function empty(value: unknown): value is baseEmpty; | ||
/** | ||
* Executes callback. | ||
* @param callback - Callback. | ||
* @returns The result of callback execution. | ||
*/ | ||
export declare function evaluate<T>(callback: types.fn.Sync<T>): T; | ||
/** | ||
* Executes promise or async function. | ||
* @param mixed - Promise or async function. | ||
* @returns The result of callback execution. | ||
*/ | ||
export declare function evaluate<T>(mixed: types.fn.AsyncPromise<T>): Promise<T>; | ||
/** | ||
* Limits value to be within [min, max] range. | ||
* @param value - Value. | ||
* @param min - Min. | ||
* @param max - Max. | ||
* @returns Limited value. | ||
*/ | ||
export declare function limit(value: number, min: number, max: number): number; | ||
/** | ||
* Checks if value is not empty. | ||
* @param value - — Value. | ||
* @returns — True if value is not empty, false otherwise. | ||
*/ | ||
export declare function notEmpty<T>(value: T): value is Exclude<T, baseEmpty>; | ||
export declare const worklets: { | ||
/** | ||
* Checks if value type is empty. | ||
* @param value - Value. | ||
* @returns _True_ if value type is empty, _false_ otherwise. | ||
*/ | ||
readonly empty: (value: unknown) => value is baseEmpty; | ||
/** | ||
* Executes callback. | ||
* @param callback - Callback. | ||
* @returns The result of callback execution. | ||
*/ | ||
readonly evaluate: <T>(callback: types.fn.Sync<T>) => T; | ||
/** | ||
* Limits value to be within [min, max] range. | ||
* @param value - Value. | ||
* @param min - Min. | ||
* @param max - Max. | ||
* @returns Limited value. | ||
*/ | ||
readonly limit: (value: number, min: number, max: number) => number; | ||
/** | ||
* Checks if value is not empty. | ||
* @param value - — Value. | ||
* @returns — True if value is not empty, false otherwise. | ||
*/ | ||
readonly notEmpty: <T>(value: T) => value is Exclude<T, baseEmpty>; | ||
}; | ||
//# sourceMappingURL=worklets.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.