UNPKG

@ramirezcgn/fantasticon

Version:

Fork of fantasticon that implements a forked version of svgicons2svgfont that support more options than the original.

20 lines (19 loc) 748 B
/// <reference types="node" /> import { AssetsMap } from '../utils/assets'; import { AssetType, OtherAssetType } from './misc'; import { RunnerOptions } from './runner'; import { FormatOptions } from './format'; export type FontGeneratorOptions = RunnerOptions & { assets: AssetsMap; formatOptions: FormatOptions; templates: { [key in OtherAssetType]: string; }; }; export type Result = Promise<string | Buffer>; export type FontGeneratorFn<DependencyT> = (options: FontGeneratorOptions, dependencyContent: DependencyT extends {} ? DependencyT : null) => Result; export type FontGenerator<DependencyT = void> = { generate: FontGeneratorFn<DependencyT>; } & (DependencyT extends {} ? { dependsOn: AssetType; } : {});