UNPKG

anyid

Version:

A simple and flexible API to generate various kinds of string ID / code.

12 lines (11 loc) 291 B
/// <reference types="node" /> import { AnyId } from './core'; export declare type ValueCallback = () => number | Buffer; declare module './core' { interface AnyId { of(f: ValueCallback): AnyId; } } export declare class Func { of(this: AnyId, f: ValueCallback): AnyId; }