Added more definition files

pull/125/head
tycrek 3 years ago
parent 76eecfcaa7
commit 35afc9cd0f
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

2
src/tycrek.d.ts vendored

@ -1,2 +0,0 @@
declare module '@tycrek/express-postcss';
declare module '@tycrek/express-nofavicon';

@ -1,4 +1,4 @@
import { Request, Response } from "express"; import { Request, Response } from 'express';
declare global { declare global {
namespace Express { namespace Express {

@ -0,0 +1,49 @@
declare module 'ass-json' {
interface Config {
host: string
port: number
domain: string
maxUploadSize: number
isProxied: boolean
useSsl: boolean
resourceIdSize: number
resourceIdType: string
spaceReplace: string
gfyIdSize: number
mediaStrict: boolean
viewDirect: boolean
dataEngine: string
frontendName: string
indexFile: string
useSia: boolean
s3enabled: boolean
s3endpoint: string
s3bucket: string
s3usePathStyle: boolean
s3accessKey: string
s3secretKey: string
__WARNING__: string
diskFilePath: string
saveWithDate: boolean
saveAsOriginal: boolean
}
interface MagicNumbers {
HTTP: number
HTTPS: number
CODE_OK: number
CODE_NO_CONTENT: number
CODE_UNAUTHORIZED: number
CODE_NOT_FOUND: number
CODE_PAYLOAD_TOO_LARGE: number
CODE_UNSUPPORTED_MEDIA_TYPE: number
CODE_INTERNAL_SERVER_ERROR: number
KILOBYTES: number
}
interface Package {
name: string
version: string
homepage: string
}
}

@ -0,0 +1,7 @@
declare module './setup' {
export function doSetup(): void;
}
declare module '@tycrek/express-postcss';
declare module '@tycrek/express-nofavicon';
declare module '@tycrek/papito';
declare module '@skynetlabs/skynet-nodejs';
Loading…
Cancel
Save