initial commit

This commit is contained in:
Zoe
2023-01-03 09:29:04 -06:00
commit 7851137d88
12889 changed files with 2557443 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
import type { NitroErrorHandler } from '../../types'
const errorHandler: NitroErrorHandler
export default errorHandler

View File

@@ -0,0 +1,3 @@
import type { NitroAppPlugin } from '../plugin'
export const plugins: NitroAppPlugin[] = []

View File

@@ -0,0 +1,2 @@
declare const _default: {};
export default _default;

View File

@@ -0,0 +1 @@
export default {};

View File

@@ -0,0 +1,4 @@
export const publicAssetBases: string[]
export const isPublicAssetURL: (id: string) => boolean
export const readAsset: (id: string) => Promise<Buffer>
export const getAsset: (id: string) => any

View File

@@ -0,0 +1,4 @@
export interface AssetMeta { type?: string, etag?: string, mtime?: string }
export function readAsset<T = any> (id: string): Promise<T>
export function statAsset (id: string): Promise<AssetMeta>
export function getKeys() : Promise<string[]>

View File

@@ -0,0 +1,14 @@
import type { H3EventHandler, LazyEventHandler, RouterMethod } from 'h3'
type HandlerDefinition = {
route: string
lazy?: boolean
middleware?: boolean
handler: H3EventHandler
method?: RouterMethod
} & {
lazy: true
handler: LazyEventHandler
}
export const handlers: HandlerDefinition[]

View File

@@ -0,0 +1,3 @@
import type { Storage } from 'unstorage'
export declare const useStorage: () => Storage