UNPKG

@graphql-tools/load

Version:

A set of utils for faster development of GraphQL tools

8 lines (7 loc) • 287 B
/** * Converts a string to 32bit integer */ export declare function stringToHash(str: string): number; export type StackNext = () => void; export type StackFn<T> = (input: T, next: StackNext) => void; export declare function useStack<T>(...fns: Array<StackFn<T>>): (input: T) => void;