silgi 0.42.0 → 0.42.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/dist/cli/build.mjs +19 -4
- package/dist/cli/index.mjs +1 -1
- package/dist/cli/loader.mjs +10 -10
- package/dist/cli/types.mjs +1 -0
- package/dist/core/index.d.mts +5 -5
- package/dist/core/index.mjs +8 -3
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -1
- package/dist/types/index.d.mts +14 -18
- package/package.json +1 -1
package/dist/cli/build.mjs
CHANGED
|
@@ -586,7 +586,15 @@ function resolveGroupSyntax(group) {
|
|
|
586
586
|
return groups;
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
-
const DEFAULT_FUNCTION_EXPORT_NAMES = [
|
|
589
|
+
const DEFAULT_FUNCTION_EXPORT_NAMES = [
|
|
590
|
+
"createSchema",
|
|
591
|
+
"createService",
|
|
592
|
+
"createWebSocket",
|
|
593
|
+
// Added
|
|
594
|
+
"createResolver",
|
|
595
|
+
"createShared",
|
|
596
|
+
"createMiddleware"
|
|
597
|
+
];
|
|
590
598
|
const DEFAULT_INTERFACE_EXTENDS_NAMES = ["ExtendShared", "ExtendContext"];
|
|
591
599
|
function generateUniqueIdentifier(filePath, exportName) {
|
|
592
600
|
const fileBaseName = basename(filePath);
|
|
@@ -595,6 +603,8 @@ function generateUniqueIdentifier(filePath, exportName) {
|
|
|
595
603
|
}
|
|
596
604
|
function categorizeExports(exportedEntities, filePath, functionExportCategories = {
|
|
597
605
|
createService: "service",
|
|
606
|
+
createWebSocket: "websocket",
|
|
607
|
+
// Added
|
|
598
608
|
createSchema: "schema",
|
|
599
609
|
createShared: "shared",
|
|
600
610
|
createResolver: "resolver",
|
|
@@ -659,6 +669,9 @@ function registerExportsWithHooks(silgiInstance, runtimeExports, typeExports, pa
|
|
|
659
669
|
case "service":
|
|
660
670
|
options.services.push(uniqueId);
|
|
661
671
|
break;
|
|
672
|
+
case "websocket":
|
|
673
|
+
options.services?.push?.(uniqueId);
|
|
674
|
+
break;
|
|
662
675
|
case "shared":
|
|
663
676
|
options.shareds.push(uniqueId);
|
|
664
677
|
break;
|
|
@@ -746,7 +759,7 @@ async function extractExportEntitiesFromFile(absoluteFilePath, functionExportNam
|
|
|
746
759
|
if (decl.type === "VariableDeclarator" && decl.id.type === "Identifier" && decl.init && decl.init.type === "CallExpression" && decl.init.callee.type === "Identifier" && functionExportNames.includes(decl.init.callee.name)) {
|
|
747
760
|
let servicePath;
|
|
748
761
|
let serviceMethod;
|
|
749
|
-
if (decl.init.callee.name === "createService") {
|
|
762
|
+
if (decl.init.callee.name === "createService" || decl.init.callee.name === "createWebSocket") {
|
|
750
763
|
const firstArg = decl.init.arguments?.[0];
|
|
751
764
|
if (firstArg && firstArg.type === "ObjectExpression" && Array.isArray(firstArg.properties)) {
|
|
752
765
|
for (const prop of firstArg.properties) {
|
|
@@ -785,6 +798,8 @@ async function scanSilgiExports(path, packageName, silgiInstance = useSilgiCLI()
|
|
|
785
798
|
functionExportNames.forEach((name) => {
|
|
786
799
|
if (name === "createService")
|
|
787
800
|
functionExportCategories[name] = "service";
|
|
801
|
+
else if (name === "createWebSocket")
|
|
802
|
+
functionExportCategories[name] = "websocket";
|
|
788
803
|
else if (name === "createSchema")
|
|
789
804
|
functionExportCategories[name] = "schema";
|
|
790
805
|
else if (name === "createShared")
|
|
@@ -836,11 +851,11 @@ async function scanSilgiExports(path, packageName, silgiInstance = useSilgiCLI()
|
|
|
836
851
|
);
|
|
837
852
|
const seenServiceSignatures = /* @__PURE__ */ new Map();
|
|
838
853
|
for (const entity of exportEntities) {
|
|
839
|
-
if (entity.funcName === "createService" && entity.servicePath && entity.serviceMethod) {
|
|
854
|
+
if ((entity.funcName === "createService" || entity.funcName === "createWebSocket") && entity.servicePath && entity.serviceMethod) {
|
|
840
855
|
const key = `${entity.serviceMethod}:${entity.servicePath}`;
|
|
841
856
|
if (seenServiceSignatures.has(key)) {
|
|
842
857
|
throw new Error(
|
|
843
|
-
`Duplicate
|
|
858
|
+
`Duplicate ${entity.funcName} detected for path "${entity.servicePath}" and method "${entity.serviceMethod}".
|
|
844
859
|
First found in: ${seenServiceSignatures.get(key)}
|
|
845
860
|
Duplicate in: ${absoluteFilePath}
|
|
846
861
|
Please ensure each service path/method combination is unique.`
|
package/dist/cli/index.mjs
CHANGED
package/dist/cli/loader.mjs
CHANGED
|
@@ -259,16 +259,16 @@ async function resolveImportsOptions(options) {
|
|
|
259
259
|
function getSilgiImportsPreset() {
|
|
260
260
|
return [
|
|
261
261
|
// TODO: buraya bizim importlarimiz gelecek.
|
|
262
|
-
{
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
},
|
|
262
|
+
// {
|
|
263
|
+
// from: 'silgi',
|
|
264
|
+
// imports: [
|
|
265
|
+
// 'createShared',
|
|
266
|
+
// 'useSilgi',
|
|
267
|
+
// 'createService',
|
|
268
|
+
// 'createSchema',
|
|
269
|
+
// 'createRouter',
|
|
270
|
+
// ],
|
|
271
|
+
// },
|
|
272
272
|
// {
|
|
273
273
|
// from: 'nitropack/runtime',
|
|
274
274
|
// imports: ['useRuntimeConfig', 'useAppConfig'],
|
package/dist/cli/types.mjs
CHANGED
package/dist/core/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { SilgiRuntimeConfig, SilgiConfig, Silgi, SilgiEvent, SilgiRuntimeContext, WebSocketOptions, SilgiSchema, RouteEntry, CustomRequestInit, SilgiCLI, SilgiStorageBase, MergeAll, Resolvers, SilgiURL, BaseMethodSchema, HTTPMethod, StandardSchemaV1,
|
|
1
|
+
import { SilgiRuntimeConfig, SilgiConfig, Silgi, SilgiEvent, SilgiRuntimeContext, WebSocketOptions, SilgiSchema, RouteEntry, CustomRequestInit, SilgiCLI, SilgiStorageBase, MergeAll, Resolvers, SilgiURL, BaseMethodSchema, HTTPMethod, StandardSchemaV1, ServiceSetup, WebSocketServiceSetup, Routers, SilgiRuntimeShareds, StorageConfig } from 'silgi/types';
|
|
2
2
|
import { ServerRequest, ServerRuntimeContext } from 'srvx';
|
|
3
3
|
import { UseContext } from 'unctx';
|
|
4
4
|
import { Storage, StorageValue } from 'unstorage';
|
|
5
5
|
export { c as createMiddleware } from '../shared/silgi.DTwQEdSr.mjs';
|
|
6
|
-
import { Hooks } from 'crossws';
|
|
7
6
|
|
|
8
7
|
declare function updateRuntimeStorage(runtime: any): void;
|
|
9
8
|
/**
|
|
@@ -305,8 +304,9 @@ declare function createSchema<Key extends string, Schema extends BaseMethodSchem
|
|
|
305
304
|
* ServiceSetup tipinden oluşan bir yardımcı fonksiyon.
|
|
306
305
|
* Tip güvenliğini artırmak için ServiceSetup objesini doğrudan döndürür.
|
|
307
306
|
*/
|
|
308
|
-
declare function defineServiceSetup<Method extends HTTPMethod, Path extends keyof Routers, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false
|
|
309
|
-
declare function createService<Path extends string, Method extends HTTPMethod, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false
|
|
307
|
+
declare function defineServiceSetup<Method extends HTTPMethod, Path extends keyof Routers, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false>(setup: Omit<ServiceSetup<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>, 'method' | 'path'>): Omit<ServiceSetup<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>, 'method' | 'path'>;
|
|
308
|
+
declare function createService<Path extends string, Method extends HTTPMethod, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false>(params: ServiceSetup<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>): Record<`http:${Method}:${Path}`, ServiceSetup<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>>;
|
|
309
|
+
declare function createWebSocket<Path extends string, Method extends HTTPMethod>(params: WebSocketServiceSetup<Method, Path>): Record<`websocket:${Method}:${Path}`, WebSocketServiceSetup<Method, Path>>;
|
|
310
310
|
|
|
311
311
|
declare function createShared(shared: Partial<SilgiRuntimeShareds>): SilgiRuntimeShareds;
|
|
312
312
|
|
|
@@ -315,4 +315,4 @@ declare function useSilgiStorage<T extends StorageValue = StorageValue>(base?: S
|
|
|
315
315
|
|
|
316
316
|
declare const autoImportTypes: string[];
|
|
317
317
|
|
|
318
|
-
export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createResolver, createSchema, createService, createShared, createSilgi, createStorage, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCLICtx, silgiCtx, silgiFetch, storageMount, tryUseSilgi, tryUseSilgiCLI, updateRuntimeStorage, useRuntime, useSilgi, useSilgiCLI, useSilgiStorage };
|
|
318
|
+
export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createResolver, createSchema, createService, createShared, createSilgi, createStorage, createWebSocket, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCLICtx, silgiCtx, silgiFetch, storageMount, tryUseSilgi, tryUseSilgiCLI, updateRuntimeStorage, useRuntime, useSilgi, useSilgiCLI, useSilgiStorage };
|
package/dist/core/index.mjs
CHANGED
|
@@ -1326,9 +1326,14 @@ function defineServiceSetup(setup) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
function createService(params) {
|
|
1328
1328
|
const method = params.method || "ALL";
|
|
1329
|
-
const type = params.websocket ? "websocket" : "http";
|
|
1330
1329
|
return {
|
|
1331
|
-
[
|
|
1330
|
+
[`http:${method}:${params.path}`]: params
|
|
1331
|
+
};
|
|
1332
|
+
}
|
|
1333
|
+
function createWebSocket(params) {
|
|
1334
|
+
const method = params.method || "ALL";
|
|
1335
|
+
return {
|
|
1336
|
+
[`websocket:${method}:${params.path}`]: params
|
|
1332
1337
|
};
|
|
1333
1338
|
}
|
|
1334
1339
|
|
|
@@ -1343,4 +1348,4 @@ const autoImportTypes = [
|
|
|
1343
1348
|
"ExtractQueryParamsFromURI"
|
|
1344
1349
|
];
|
|
1345
1350
|
|
|
1346
|
-
export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createMiddleware, createResolver, createSchema, createService, createShared, createSilgi, createStorage, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCtx, silgiFetch, storageMount, tryUseSilgi, updateRuntimeStorage, useRuntime, useSilgi, useSilgiStorage };
|
|
1351
|
+
export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createMiddleware, createResolver, createSchema, createService, createShared, createSilgi, createStorage, createWebSocket, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCtx, silgiFetch, storageMount, tryUseSilgi, updateRuntimeStorage, useRuntime, useSilgi, useSilgiStorage };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createResolver, createSchema, createService, createShared, createSilgi, createStorage, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCLICtx, silgiCtx, silgiFetch, storageMount, tryUseSilgi, tryUseSilgiCLI, updateRuntimeStorage, useRuntime, useSilgi, useSilgiCLI, useSilgiStorage } from './core/index.mjs';
|
|
1
|
+
export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createResolver, createSchema, createService, createShared, createSilgi, createStorage, createWebSocket, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCLICtx, silgiCtx, silgiFetch, storageMount, tryUseSilgi, tryUseSilgiCLI, updateRuntimeStorage, useRuntime, useSilgi, useSilgiCLI, useSilgiStorage } from './core/index.mjs';
|
|
2
2
|
export { c as createMiddleware } from './shared/silgi.DTwQEdSr.mjs';
|
|
3
3
|
import 'silgi/types';
|
|
4
4
|
import 'srvx';
|
|
5
5
|
import 'unctx';
|
|
6
6
|
import 'unstorage';
|
|
7
|
-
import 'crossws';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createMiddleware, createResolver, createSchema, createService, createShared, createSilgi, createStorage, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCtx, silgiFetch, storageMount, tryUseSilgi, updateRuntimeStorage, useRuntime, useSilgi, useSilgiStorage } from './core/index.mjs';
|
|
1
|
+
export { SilgiError, SilgiHttpEvent, autoImportTypes, createError, createEventStream, createMiddleware, createResolver, createSchema, createService, createShared, createSilgi, createStorage, createWebSocket, deepMergeObjects, defineServiceSetup, getEvent, getEventContext, getUrlPrefix, getWebsocket, handleResponse, handler, isError, kHandled, kNotFound, middleware, replaceRuntimeValues, silgiCtx, silgiFetch, storageMount, tryUseSilgi, updateRuntimeStorage, useRuntime, useSilgi, useSilgiStorage } from './core/index.mjs';
|
|
2
2
|
export { s as silgiCLICtx, t as tryUseSilgiCLI, u as useSilgiCLI } from './_chunks/silgiApp.mjs';
|
|
3
3
|
import 'node:async_hooks';
|
|
4
4
|
import 'unctx';
|
package/dist/types/index.d.mts
CHANGED
|
@@ -332,11 +332,10 @@ type ServiceHandler<Input extends StandardSchemaV1, Output extends StandardSchem
|
|
|
332
332
|
/**
|
|
333
333
|
* Servis setup tipi
|
|
334
334
|
*/
|
|
335
|
-
interface ServiceSetup<Method extends HTTPMethod = HTTPMethod, Path extends string = string, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false
|
|
335
|
+
interface ServiceSetup<Method extends HTTPMethod = HTTPMethod, Path extends string = string, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false> {
|
|
336
336
|
path: Path;
|
|
337
337
|
method?: Method;
|
|
338
338
|
handler?: ServiceHandler<Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>;
|
|
339
|
-
websocket?: Websocket;
|
|
340
339
|
rules?: MergeRouteRules;
|
|
341
340
|
modules?: Partial<SetupModuleOption>;
|
|
342
341
|
storage?: StorageConfig<ServiceHandlerInput<Input, PathParams, QueryParams, HiddenParameters>>;
|
|
@@ -345,6 +344,13 @@ interface ServiceSetup<Method extends HTTPMethod = HTTPMethod, Path extends stri
|
|
|
345
344
|
pathParams?: PathParams;
|
|
346
345
|
queryParams?: QueryParams;
|
|
347
346
|
}
|
|
347
|
+
interface WebSocketServiceSetup<Method extends HTTPMethod = HTTPMethod, Path extends string = string> {
|
|
348
|
+
path: Path;
|
|
349
|
+
websocket: Partial<Hooks>;
|
|
350
|
+
method?: Method;
|
|
351
|
+
rules?: MergeRouteRules;
|
|
352
|
+
modules?: Partial<SetupModuleOption>;
|
|
353
|
+
}
|
|
348
354
|
/**
|
|
349
355
|
* Represents a fully resolved service definition that maps route paths
|
|
350
356
|
* to their handler and configurations.
|
|
@@ -357,6 +363,9 @@ interface ServiceSetup<Method extends HTTPMethod = HTTPMethod, Path extends stri
|
|
|
357
363
|
interface ResolvedServiceDefinition {
|
|
358
364
|
[key: string]: ServiceSetup<any, any, any, any, any, any, any, any>;
|
|
359
365
|
}
|
|
366
|
+
interface ResolvedWebSocketServiceDefinition {
|
|
367
|
+
[key: string]: WebSocketServiceSetup<any, any>;
|
|
368
|
+
}
|
|
360
369
|
/**
|
|
361
370
|
* SilgiURL tipi
|
|
362
371
|
*/
|
|
@@ -369,19 +378,6 @@ interface SilgiURL {
|
|
|
369
378
|
pathParams?: Record<string, string | undefined>;
|
|
370
379
|
queryParams?: Record<string, string>;
|
|
371
380
|
}
|
|
372
|
-
type IsWebsocketEnabled<T> = [T] extends [undefined] | [never] ? false : true;
|
|
373
|
-
type ServiceSetupsForMethods<Method extends HTTPMethod = HTTPMethod, Path extends string = string, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false, Websocket extends Partial<Hooks> | undefined = undefined> = ServiceSetup<Method, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters, Websocket>;
|
|
374
|
-
/**
|
|
375
|
-
* Sadece belirtilen HTTP methodları için anahtar üretir.
|
|
376
|
-
* Varsayılan olarak tüm methodlar çıkar.
|
|
377
|
-
*
|
|
378
|
-
* Örnek:
|
|
379
|
-
* ServiceDefinitionByMethodAndPath<'/foo', ..., 'GET' | 'POST'>
|
|
380
|
-
* // Sadece "GET:/foo" ve "POST:/foo" anahtarları olur.
|
|
381
|
-
*/
|
|
382
|
-
type ServiceDefinitionByMethodAndPath<Path extends string, Method extends HTTPMethod = HTTPMethod, Input extends StandardSchemaV1 = StandardSchemaV1, Output extends StandardSchemaV1 = StandardSchemaV1, PathParams extends StandardSchemaV1 | undefined | never = undefined, QueryParams extends StandardSchemaV1 | undefined | never = undefined, Resolved extends boolean = false, HiddenParameters extends boolean = false, Websocket extends Partial<Hooks> | undefined = undefined> = {
|
|
383
|
-
[M in Method as IsWebsocketEnabled<Websocket> extends true ? `websocket:${M}:${Path}` : `http:${M}:${Path}`]: ServiceSetup<M, Path, Input, Output, PathParams, QueryParams, Resolved, HiddenParameters, Websocket>;
|
|
384
|
-
};
|
|
385
381
|
|
|
386
382
|
interface SilgiCLI {
|
|
387
383
|
_ignore?: Ignore;
|
|
@@ -778,7 +774,7 @@ interface MetaData extends Record<string, unknown> {
|
|
|
778
774
|
interface SilgiRoute {
|
|
779
775
|
route?: string;
|
|
780
776
|
method?: HTTPMethod;
|
|
781
|
-
service?: ResolvedServiceDefinition[keyof ResolvedServiceDefinition];
|
|
777
|
+
service?: ResolvedServiceDefinition[keyof ResolvedServiceDefinition] & ResolvedWebSocketServiceDefinition[keyof ResolvedWebSocketServiceDefinition];
|
|
782
778
|
middleware?: MiddlewareSetup;
|
|
783
779
|
}
|
|
784
780
|
interface Silgi {
|
|
@@ -789,7 +785,7 @@ interface Silgi {
|
|
|
789
785
|
routerPrefixs: string[];
|
|
790
786
|
schemas: ResolvedSchemaDefinition;
|
|
791
787
|
resolvers: IResolvers<any, any>[];
|
|
792
|
-
services: ResolvedServiceDefinition;
|
|
788
|
+
services: ResolvedServiceDefinition & ResolvedWebSocketServiceDefinition;
|
|
793
789
|
shared: SilgiRuntimeShareds;
|
|
794
790
|
plugins: SilgiAppPlugin[];
|
|
795
791
|
framework?: {
|
|
@@ -1305,4 +1301,4 @@ interface LoadConfigOptions {
|
|
|
1305
1301
|
}
|
|
1306
1302
|
|
|
1307
1303
|
export { StandardSchemaV1 };
|
|
1308
|
-
export type { AllPaths, AllPrefixes, AppConfig, Awaitable, BaseMethodSchema, BuildSilgi, CaptureError, CapturedErrorContext, CommandType, Commands, CreateMiddlewareParams, CustomRequestInit, DeepPartial, DeepRequired, DefaultHooks, DefineFrameworkOptions, DotenvOptions, EnvOptions, EventHandlerResponse, EventProtocol, ExtendContext, ExtendShared, ExtractNamespace, ExtractPathParamKeys, ExtractPathParams, ExtractPrefix, ExtractRoute, GenImport, GenerateAppOptions, HTTPMethod, HasPathParams, HookResult, LoadConfigOptions, Max4Slashes, MergeAll, MergeRouteRules, MergedSilgiSchema, MetaData, MethodSchemas, MiddlewareHandler, MiddlewarePath, MiddlewareSetup, ModuleDefinition, ModuleHookContext, ModuleMeta, ModuleOptionsCustom, ModuleSetupInstallResult, ModuleSetupReturn, NamespacesForPrefix, NitroBuildInfo, RequiredServiceType, ResolvedMiddlewareDefinition, ResolvedModuleMeta, ResolvedModuleOptions, ResolvedSchema, ResolvedSchemaDefinition, ResolvedServiceDefinition, ResolvedSilgiTemplate, Resolvers, RouteEntry, RouteRules, RouterParams, Routers, RoutesForPrefixAndNamespace, ScanFile, Schema,
|
|
1304
|
+
export type { AllPaths, AllPrefixes, AppConfig, Awaitable, BaseMethodSchema, BuildSilgi, CaptureError, CapturedErrorContext, CommandType, Commands, CreateMiddlewareParams, CustomRequestInit, DeepPartial, DeepRequired, DefaultHooks, DefineFrameworkOptions, DotenvOptions, EnvOptions, EventHandlerResponse, EventProtocol, ExtendContext, ExtendShared, ExtractNamespace, ExtractPathParamKeys, ExtractPathParams, ExtractPrefix, ExtractRoute, GenImport, GenerateAppOptions, HTTPMethod, HasPathParams, HookResult, LoadConfigOptions, Max4Slashes, MergeAll, MergeRouteRules, MergedSilgiSchema, MetaData, MethodSchemas, MiddlewareHandler, MiddlewarePath, MiddlewareSetup, ModuleDefinition, ModuleHookContext, ModuleMeta, ModuleOptionsCustom, ModuleSetupInstallResult, ModuleSetupReturn, NamespacesForPrefix, NitroBuildInfo, RequiredServiceType, ResolvedMiddlewareDefinition, ResolvedModuleMeta, ResolvedModuleOptions, ResolvedSchema, ResolvedSchemaDefinition, ResolvedServiceDefinition, ResolvedSilgiTemplate, ResolvedWebSocketServiceDefinition, Resolvers, RouteEntry, RouteRules, RouterParams, Routers, RoutesForPrefixAndNamespace, ScanFile, Schema, ServiceHandler, ServiceHandlerInput, ServiceSetup, ServicesObject, SetupModuleOption, Silgi, SilgiAppPlugin, SilgiCLI, SilgiCLIConfig, SilgiCLIHooks, SilgiCLIOptions, SilgiCommands, SilgiCompatibility, SilgiCompatibilityIssue, SilgiCompatibilityIssues, SilgiConfig, SilgiEvent, SilgiFetchClient, SilgiFetchOptions, SilgiFrameworkInfo, SilgiHooks, SilgiModule, SilgiModuleInput, SilgiModuleOptions, SilgiOptions, SilgiPreset, SilgiPresetMeta, SilgiRoute, SilgiRouterTypes, SilgiRuntimeConfig, SilgiRuntimeContext, SilgiRuntimeDefaultConfig, SilgiRuntimeHooks, SilgiRuntimeMethods, SilgiRuntimeOptions, SilgiRuntimeShareds, SilgiRuntimeSharedsExtend, SilgiSchema, SilgiStorageBase, SilgiTemplate, SilgiURL, StandardHTTPMethod, StorageConfig, StorageKeyGenerator, StorageKeyParams, StorageMounts, TSReference, TrimAfterFourSlashes, WebSocketOptions, WebSocketServiceSetup, WildcardVariants, WithPathParams };
|