Skip to content

BasesPluginInstance.createNewBasesFile method

BasesPluginInstance › createNewBasesFile

Unofficial

Creates a new bases file.

Signature:

createNewBasesFile(location?: TFolder | undefined, filename?: string | undefined, contents?: string | undefined): Promise<TFile>

Parameters:

ParameterTypeDescription
location?TFolder | undefinedOptional folder location for the new file.
filename?string | undefinedOptional filename for the new file.
contents?string | undefinedOptional initial contents.

Returns: Promise<TFile>The created file.