utility: {
addFileProtocol: ((filePath, vscodePreviewPanel?) => string);
getCrossnoteBuildDirectory: (() => string);
openFile: ((filePath) => undefined | ChildProcess);
setCrossnoteBuildDirectory: ((path) => void);
uploadImage: ((imageFilePath, __namedParameters) => Promise<string>);
useExternalAddFileProtocolFunction: ((func) => void);
} = ...
Type declaration
addFileProtocol: ((filePath, vscodePreviewPanel?) => string)
- (filePath, vscodePreviewPanel?): string
Parameters
filePath: string
Optional
vscodePreviewPanel: null | WebviewPanel
Returns string
getCrossnoteBuildDirectory: (() => string)
openFile: ((filePath) => undefined | ChildProcess)
- (filePath): undefined | ChildProcess
Returns undefined | ChildProcess
setCrossnoteBuildDirectory: ((path) => void)
uploadImage: ((imageFilePath, __namedParameters) => Promise<string>)
- (imageFilePath, __namedParameters): Promise<string>
Parameters
imageFilePath: string
__namedParameters: {
method: undefined | string;
qiniu: undefined | {
AccessKey: string;
Bucket: string;
Domain: string;
SecretKey: string;
};
}
method: undefined | string
qiniu: undefined | {
AccessKey: string;
Bucket: string;
Domain: string;
SecretKey: string;
}
Returns Promise<string>
useExternalAddFileProtocolFunction: ((func) => void)
- (func): void
Parameters
func: ((filePath, vscodePreviewPanel?) => string)
- (filePath, vscodePreviewPanel?): string
Parameters
filePath: string
Optional
vscodePreviewPanel: null | WebviewPanel
Returns string
Returns void
Add file:/// to file path If it's for VSCode preview, add vscode-resource:/// to file path