mnfst-types 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/template/manifest.d.ts +7 -7
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ For autocomplete and validation in `manifest.json` itself, add a `$schema` refer
|
|
|
37
37
|
|
|
38
38
|
```json
|
|
39
39
|
{
|
|
40
|
-
"$schema": "https://
|
|
40
|
+
"$schema": "https://manifestx.dev/manifest.schema.json",
|
|
41
41
|
"name": "My Project",
|
|
42
42
|
"data": { ... }
|
|
43
43
|
}
|
package/package.json
CHANGED
package/template/manifest.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Manifest ambient type declarations.
|
|
3
|
-
* https://
|
|
3
|
+
* https://manifestx.dev
|
|
4
4
|
*
|
|
5
5
|
* This file gives editors (VS Code, Cursor, JetBrains) and AI coding assistants
|
|
6
6
|
* type information for Manifest's magic globals and data-source state. It is
|
|
@@ -119,11 +119,11 @@ export interface ManifestSources {
|
|
|
119
119
|
|
|
120
120
|
/** `$auth` from the Appwrite auth plugin. Loose by design — auth API is broad. */
|
|
121
121
|
export interface ManifestAuth {
|
|
122
|
-
readonly current: { $id: string; email?: string; name?: string;
|
|
122
|
+
readonly current: { $id: string; email?: string; name?: string;[k: string]: unknown } | null;
|
|
123
123
|
readonly isAuthenticated: boolean;
|
|
124
124
|
readonly isLoading: boolean;
|
|
125
|
-
readonly currentTeam: { $id: string; name: string;
|
|
126
|
-
readonly teams: Array<{ $id: string; name: string;
|
|
125
|
+
readonly currentTeam: { $id: string; name: string;[k: string]: unknown } | null;
|
|
126
|
+
readonly teams: Array<{ $id: string; name: string;[k: string]: unknown }>;
|
|
127
127
|
login(email: string, password?: string): Promise<unknown>;
|
|
128
128
|
loginWithMagic(email: string): Promise<unknown>;
|
|
129
129
|
loginWithOAuth(provider: string, opts?: Record<string, unknown>): Promise<unknown>;
|
|
@@ -149,7 +149,7 @@ export interface ManifestToast {
|
|
|
149
149
|
dismiss(id?: string): void;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
/** `$
|
|
152
|
+
/** `$colors` from the themes plugin. */
|
|
153
153
|
export interface ManifestTheme {
|
|
154
154
|
readonly current: 'light' | 'dark' | 'system';
|
|
155
155
|
set(theme: 'light' | 'dark' | 'system'): void;
|
|
@@ -208,7 +208,7 @@ declare global {
|
|
|
208
208
|
/** Toasts plugin. */
|
|
209
209
|
const $toast: ManifestToast;
|
|
210
210
|
/** Themes plugin. */
|
|
211
|
-
const $
|
|
211
|
+
const $colors: ManifestTheme;
|
|
212
212
|
/** Colors plugin. */
|
|
213
213
|
const $colors: ManifestColors;
|
|
214
214
|
/** Colorpicker plugin. */
|
|
@@ -241,4 +241,4 @@ declare global {
|
|
|
241
241
|
// AUGMENTATION:end
|
|
242
242
|
// ---------------------------------------------------------------------------
|
|
243
243
|
|
|
244
|
-
export {};
|
|
244
|
+
export { };
|