Skip to content

Commit

Permalink
0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
iliubinskii committed Jul 23, 2024
1 parent 6ca707b commit 2af4ccd
Show file tree
Hide file tree
Showing 26 changed files with 248 additions and 305 deletions.
2 changes: 1 addition & 1 deletion dist/functions/index.d.ts
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
2 changes: 1 addition & 1 deletion dist/functions/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/functions/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/functions/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 28 additions & 32 deletions dist/functions/worklets.d.ts
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
2 changes: 1 addition & 1 deletion dist/functions/worklets.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 41 additions & 42 deletions dist/functions/worklets.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/functions/worklets.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/functions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ Re-exports [springAnimation](react-native-reanimated/springAnimation/functions/s

### worklets

Renames and re-exports [functions/worklets](worklets/index.md)
Re-exports [worklets](worklets/variables/worklets.md)
23 changes: 0 additions & 23 deletions docs/functions/worklets/functions/empty.md

This file was deleted.

57 changes: 0 additions & 57 deletions docs/functions/worklets/functions/evaluate.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/functions/worklets/functions/limit.md

This file was deleted.

27 changes: 0 additions & 27 deletions docs/functions/worklets/functions/notEmpty.md

This file was deleted.

7 changes: 2 additions & 5 deletions docs/functions/worklets/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

## Index

### Functions
### Variables

- [empty](functions/empty.md)
- [evaluate](functions/evaluate.md)
- [limit](functions/limit.md)
- [notEmpty](functions/notEmpty.md)
- [worklets](variables/worklets.md)
Loading

0 comments on commit 2af4ccd

Please sign in to comment.