index.d.ts 254 B

12345678910111213
  1. interface Options {
  2. context: string;
  3. hashPrefix: string;
  4. }
  5. type Generator = (localName: string, filepath: string) => string;
  6. declare function createGenerator(
  7. pattern: string,
  8. options?: Partial<Options>
  9. ): Generator;
  10. export = createGenerator;