mirror of
https://github.com/strapi/strapi.git
synced 2025-07-29 20:10:21 +00:00
Move factory at the top of the provider file
This commit is contained in:
parent
2878ed706b
commit
adee08e3a1
@ -39,6 +39,10 @@ export interface ILocalFileSourceProviderOptions {
|
||||
compressed?: boolean;
|
||||
}
|
||||
|
||||
export const createLocalFileSourceProvider = (options: ILocalFileSourceProviderOptions) => {
|
||||
return new LocalFileSourceProvider(options);
|
||||
};
|
||||
|
||||
class LocalFileSourceProvider implements ISourceProvider {
|
||||
type: ProviderType = 'source';
|
||||
name: string = 'source::local-file';
|
||||
@ -197,7 +201,3 @@ class LocalFileSourceProvider implements ISourceProvider {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export const createLocalFileSourceProvider = (options: ILocalFileSourceProviderOptions) => {
|
||||
return new LocalFileSourceProvider(options);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user