@player-ui/player
Version:
12 lines • 772 B
TypeScript
import type { BindingLike, BindingInstance } from "./binding";
/** Check if the parameter representing a binding is already of the Binding class */
export declare function isBinding(binding: BindingLike): binding is BindingInstance;
/** Convert the string to an int if you can, otherwise just return the original string */
export declare function maybeConvertToNum(i: string): string | number;
/**
* utility to convert binding into binding segments.
*/
export declare function getBindingSegments(binding: BindingLike): Array<string | number>;
/** Like _.findIndex, but ignores types */
export declare function findInArray<T extends Record<string | number, object>>(array: Array<T>, key: string | number, value: T): number | undefined;
//# sourceMappingURL=utils.d.ts.map