fix default type

This commit is contained in:
nicwands
2026-02-24 14:05:45 -05:00
parent 52d7d78a84
commit 0f1acd9528
3 changed files with 9 additions and 3 deletions

1
.gitignore vendored
View File

@@ -13,6 +13,7 @@ dist
dist-ssr dist-ssr
coverage coverage
*.local *.local
.npmrc
# Editor directories and files # Editor directories and files
.vscode/* .vscode/*

View File

@@ -1,10 +1,14 @@
{ {
"name": "@takerofnotes/plugin-sdk", "name": "takerofnotes-plugin-sdk",
"version": "0.1.0", "version": "0.1.0",
"description": "SDK to create a storage plugin for Taker of Notes", "description": "SDK to create a storage plugin for Taker of Notes",
"type": "module", "type": "module",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/nicwands/takerofnotes-plugin-sdk.git"
},
"files": [ "files": [
"dist" "dist"
], ],
@@ -16,7 +20,8 @@
}, },
"scripts": { "scripts": {
"build": "tsup src/index.ts --format esm --dts", "build": "tsup src/index.ts --format esm --dts",
"dev": "tsup src/index.ts --format esm --dts --watch" "dev": "tsup src/index.ts --format esm --dts --watch",
"prepublishOnly": "npm run build"
}, },
"author": "nicwands", "author": "nicwands",
"license": "MIT", "license": "MIT",

View File

@@ -2,7 +2,7 @@ export interface ConfigField {
key: string key: string
label: string label: string
type: 'text' | 'password' | 'directory' | 'number' | 'boolean' type: 'text' | 'password' | 'directory' | 'number' | 'boolean'
default: 'text' | 'password' | 'directory' | 'number' | 'boolean' default: string
required?: boolean required?: boolean
} }