phaser3-rex-plugins-types
Version:
[](https://www.npmjs.com/package/phaser3-rex-plugins-types) [](https://github.com/prettier/prettier) [![B
21 lines (16 loc) • 673 B
TypeScript
declare module 'phaser3-rex-plugins/plugins/loader/webfontloader/WebFontLoaderCallback' {
interface WebFontLoaderConfig
extends Omit<
WebFont.Config,
'active' | 'inactive' | 'fontactive' | 'fontinactive' | 'loading' | 'fontloading'
> {
testString?: string;
testInterval?: number;
}
interface PartialFileConfig extends Partial<Phaser.Types.Loader.FileConfig> {
config: WebFontLoaderConfig;
}
function loaderCallback(config: PartialFileConfig | WebFontLoaderConfig): void;
function loaderCallback(key: string, config: WebFontLoaderConfig): void;
export default loaderCallback;
}