Commit 32d8ab9e authored by greg@1m's avatar greg@1m
Browse files

wip on gen doc

parent 1826d6bf
......@@ -12,7 +12,7 @@ import { iFileApi, useFileApi } from './file.api.hook';
import { iFilesApi, useFilesApi } from './files.api.hook';
import { iFoldersApi, useFoldersApi } from './folders.api.hook';
import { iNoteHistoryApi } from './history.api.hook';
import { iSearchApi, useSearchApi } from './search.hook.api';
import { iSearchUiApi, useSearchApi } from './search.hook.api';
import { iStatusApi } from './status.api.hook';
import { iUploadApi, useUploadApi } from './upload.api.hook';
import { getFunctionParamNames } from '../../managers/functions.manager';
......@@ -35,9 +35,9 @@ export interface iApiEventBus {
export interface iClientApi {
file: iFileApi
upload: iUploadApi
/**
* comment3
*/
/**
* comment3
*/
popup: iPopupApi
files: iFilesApi
folders: iFoldersApi
......@@ -49,7 +49,7 @@ export interface iClientApi {
browser: iBrowserApi
windows: iWindowsApi
lightbox: iLightboxApi
search: iSearchApi['ui']
search: iSearchUiApi
}
status: iStatusApi
}
......
......@@ -10,15 +10,17 @@ import { iStatusApi } from './status.api.hook';
// INTERFACES
//
export interface iSearchApi {
files: {
search: (term: string, cb: (nFiles: iFile[]) => void) => void
}
ui: {
search: (term: string) => void
term: {
set: (nTerm: string) => void
get: string
}
files: iSearchFilesApi
ui: iSearchUiApi
}
export interface iSearchFilesApi {
search: (term: string, cb: (nFiles: iFile[]) => void) => void
}
export interface iSearchUiApi {
search: (term: string) => void
term: {
set: (nTerm: string) => void
get: string
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment