mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
17 lines
429 B
TypeScript
17 lines
429 B
TypeScript
|
import { OptionsResourceModel } from './types';
|
||
|
|
||
|
// Used for tests and when no ResourceModel is provided.
|
||
|
|
||
|
const defaultResourceModel: OptionsResourceModel = {
|
||
|
isResourceUrl: (_url: string) => false,
|
||
|
urlToId: _url => {
|
||
|
throw new Error('Not implemented: urlToId');
|
||
|
},
|
||
|
filename: _url => {
|
||
|
throw new Error('Not implemented: filename');
|
||
|
},
|
||
|
isSupportedImageMimeType: _type => false,
|
||
|
};
|
||
|
|
||
|
export default defaultResourceModel;
|