update ts
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sigpro",
|
"name": "sigpro",
|
||||||
"version": "1.2.26",
|
"version": "1.2.28",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
38
sigpro.d.ts
vendored
38
sigpro.d.ts
vendored
@@ -118,24 +118,6 @@ export function each<T>(
|
|||||||
keyField?: keyof T
|
keyField?: keyof T
|
||||||
): HTMLElement;
|
): HTMLElement;
|
||||||
|
|
||||||
/**
|
|
||||||
* Simple animation helper for enter transitions.
|
|
||||||
*
|
|
||||||
* @param options - Animation settings
|
|
||||||
* @param child - Node or function returning node
|
|
||||||
* @returns The animated node
|
|
||||||
*/
|
|
||||||
export function fx(
|
|
||||||
options: {
|
|
||||||
name?: string;
|
|
||||||
duration?: number;
|
|
||||||
scale?: boolean;
|
|
||||||
slide?: boolean;
|
|
||||||
rotate?: boolean;
|
|
||||||
blur?: boolean;
|
|
||||||
},
|
|
||||||
child: Node | (() => Node)
|
|
||||||
): Node;
|
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// Router
|
// Router
|
||||||
@@ -168,22 +150,6 @@ export namespace router {
|
|||||||
export function path(): string;
|
export function path(): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================================
|
|
||||||
// HTTP Requests
|
|
||||||
// ============================================================================
|
|
||||||
|
|
||||||
export function req(config: {
|
|
||||||
url: string;
|
|
||||||
method?: string;
|
|
||||||
headers?: Record<string, string>;
|
|
||||||
}): {
|
|
||||||
run: (body?: any) => Promise<any>;
|
|
||||||
abort: () => void;
|
|
||||||
loading: Signal<boolean>;
|
|
||||||
error: Signal<string | null>;
|
|
||||||
data: Signal<any | null>;
|
|
||||||
};
|
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// Mount API
|
// Mount API
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -315,9 +281,7 @@ declare const SigPro: {
|
|||||||
h: typeof h;
|
h: typeof h;
|
||||||
when: typeof when;
|
when: typeof when;
|
||||||
each: typeof each;
|
each: typeof each;
|
||||||
fx: typeof fx;
|
|
||||||
router: typeof router;
|
router: typeof router;
|
||||||
req: typeof req;
|
|
||||||
mount: typeof mount;
|
mount: typeof mount;
|
||||||
batch: typeof batch;
|
batch: typeof batch;
|
||||||
};
|
};
|
||||||
@@ -336,9 +300,7 @@ declare global {
|
|||||||
h: typeof h;
|
h: typeof h;
|
||||||
when: typeof when;
|
when: typeof when;
|
||||||
each: typeof each;
|
each: typeof each;
|
||||||
fx: typeof fx;
|
|
||||||
router: typeof router;
|
router: typeof router;
|
||||||
req: typeof req;
|
|
||||||
mount: typeof mount;
|
mount: typeof mount;
|
||||||
batch: typeof batch;
|
batch: typeof batch;
|
||||||
SigPro: typeof SigPro;
|
SigPro: typeof SigPro;
|
||||||
|
|||||||
Reference in New Issue
Block a user