Fix wrong jsdoc param

pull/1860/head
Tony 8 months ago
parent 99321ddbfa
commit 1c401f7cb0
No known key found for this signature in database
GPG Key ID: 34BDD3EA27824956

@ -33,8 +33,8 @@ export type StoreOptions = {
} }
/** /**
* @param path: Path to save the store in `app_data_dir` * @param path Path to save the store in `app_data_dir`
* @param options: Store configuration options * @param options Store configuration options
* *
* @throws If a store at that path already exists * @throws If a store at that path already exists
*/ */
@ -48,8 +48,8 @@ export async function createStore(
/** /**
* Create a new Store or get the existing store with the path * Create a new Store or get the existing store with the path
* *
* @param path: Path to save the store in `app_data_dir` * @param path Path to save the store in `app_data_dir`
* @param options: Store configuration options * @param options Store configuration options
*/ */
export async function createOrExistingStore( export async function createOrExistingStore(
path: string, path: string,
@ -59,7 +59,7 @@ export async function createOrExistingStore(
} }
/** /**
* @param path: Path of the store in the rust side * @param path Path of the store in the rust side
*/ */
export async function getStore(path: string): Promise<Store | undefined> { export async function getStore(path: string): Promise<Store | undefined> {
return await Store.getStore(path) return await Store.getStore(path)
@ -80,8 +80,8 @@ export class LazyStore implements IStore {
/** /**
* Note that the options are not applied if someone else already created the store * Note that the options are not applied if someone else already created the store
* @param path: Path to save the store in `app_data_dir` * @param path Path to save the store in `app_data_dir`
* @param options: Store configuration options * @param options Store configuration options
*/ */
constructor( constructor(
private readonly path: string, private readonly path: string,
@ -172,8 +172,8 @@ export class Store extends Resource implements IStore {
} }
/** /**
* @param path: Path to save the store in `app_data_dir` * @param path Path to save the store in `app_data_dir`
* @param options: Store configuration options * @param options Store configuration options
* *
* @throws If a store at that path already exists * @throws If a store at that path already exists
*/ */
@ -191,8 +191,8 @@ export class Store extends Resource implements IStore {
/** /**
* Create a new Store or get the existing store with the path * Create a new Store or get the existing store with the path
* *
* @param path: Path to save the store in `app_data_dir` * @param path Path to save the store in `app_data_dir`
* @param options: Store configuration options * @param options Store configuration options
*/ */
static async createOrExistingStore( static async createOrExistingStore(
path: string, path: string,
@ -206,7 +206,7 @@ export class Store extends Resource implements IStore {
} }
/** /**
* @param path: Path of the store in the rust side * @param path Path of the store in the rust side
*/ */
static async getStore(path: string): Promise<Store | undefined> { static async getStore(path: string): Promise<Store | undefined> {
const rid = await invoke<number | null>('plugin:store|get_store', { path }) const rid = await invoke<number | null>('plugin:store|get_store', { path })

Loading…
Cancel
Save