mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +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;
|