webextension-store-meta
Version:
Get browser extension(webextension) item meta from Chrome Web Store and Firefox add-ons.
8 lines (7 loc) • 562 B
TypeScript
export declare const parseNum: (str: unknown) => number | null;
export declare const parseVersion: (str?: unknown) => string | null;
export declare const isPlainObject: (value: unknown) => value is Record<PropertyKey, unknown>;
export declare const toPlainObject: (value: unknown) => Record<PropertyKey, unknown> | undefined;
export declare const toArray: (value: unknown) => unknown[] | undefined;
export declare const toStr: (value: unknown) => string | null;
export declare const tryJSONParseObject: (str: string) => Record<PropertyKey, unknown> | undefined;