Skip to content

Commit

Permalink
Chore: Remove unused Assets.init options (#8903)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Nov 30, 2022
1 parent 68a82d4 commit eacfa54
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/assets/src/Assets.ts
Expand Up @@ -9,7 +9,7 @@ import { isSingleItem } from './utils/isSingleItem';

import type { FormatDetectionParser } from './detections';
import type { LoadAsset, LoaderParser } from './loader';
import type { PreferOrder, ResolveAsset, ResolveURLParser, ResolverBundle, ResolverManifest } from './resolver';
import type { ResolveAsset, ResolverBundle, ResolverManifest } from './resolver';

export type ProgressCallback = (progress: number) => void;

Expand Down Expand Up @@ -46,21 +46,6 @@ export interface AssetInitOptions
parsers?: LoaderParser[];
// more...
};
/** resolver specific options */
resolver?: {
/**
* a list of urlParsers, these can read the URL and pick put the various options.
* for example there is a texture URL parser that picks our resolution and file format.
* You can add custom ways to read URLs and extract information here.
*/
urlParsers?: ResolveURLParser[];
/**
* a list of preferOrders that let the resolver know which asset to pick.
* already built-in we have a texture preferOrders that let the resolve know which asset to prefer
* if it has multiple assets to pick from (resolution/formats etc)
*/
preferOrders?: PreferOrder[];
};
}

/**
Expand Down

0 comments on commit eacfa54

Please sign in to comment.