fix usge of string enums

pull/280/head
Vladimir Mandic 2021-09-11 23:08:18 -04:00
parent 69021653be
commit b6f3f6a494
3 changed files with 6 additions and 5 deletions

View File

@ -37,6 +37,7 @@
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/triple-slash-reference": "off",
"camelcase": "off",
"dot-notation": "off",
"func-names": "off",

View File

@ -11,9 +11,8 @@
### **HEAD -> main** 2021/09/11 mandic00@live.com
### **origin/main** 2021/09/11 mandic00@live.com
- implement event emitters
- fix iife loader
- simplify dependencies
- fix file permissions
- remove old build server

View File

@ -7,9 +7,10 @@
* Contains all configurable parameters
* @typedef Config
*/
export interface Config {
/** Backend used for TFJS operations */
backend: null | '' | 'cpu' | 'wasm' | 'webgl' | 'humangl' | 'tensorflow' | 'webgpu',
backend: '' | 'cpu' | 'wasm' | 'webgl' | 'humangl' | 'tensorflow' | 'webgpu' | null | string,
/** Path to *.wasm files if backend is set to `wasm` */
wasmPath: string,
@ -24,7 +25,7 @@ export interface Config {
* - warmup pre-initializes all models for faster inference but can take significant time on startup
* - only used for `webgl` and `humangl` backends
*/
warmup: 'none' | 'face' | 'full' | 'body',
warmup: 'none' | 'face' | 'full' | 'body' | string,
/** Base model path (typically starting with file://, http:// or https://) for all models
* - individual modelPath values are relative to this path