contro-max
Version:
Game controls done in the best possible way!
4 lines (3 loc) • 332 B
TypeScript
export declare const stringStartsWith: <T extends string>(str: string, search: T) => str is `${T}${string}`;
export declare const stringEndsWith: <T extends string>(str: string, search: T) => str is `${string}${T}`;
export declare const stringIncludes: <T extends string>(str: string, search: T) => str is `${string}${T}${string}`;