fix@sdk: types export

This commit is contained in:
Artemy
2024-05-13 12:54:14 +03:00
parent 1a8eadea7b
commit 494d1c8134
11 changed files with 3875 additions and 3026 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@txtdot/sdk",
"version": "1.1.1",
"version": "1.1.2",
"description": "SDK for creating plugins for TxtDot",
"main": "dist/lib.js",
"types": "dist/lib.d.ts",

View File

@ -1,3 +1,35 @@
import { Engine } from './engine';
export { Engine };
import {
EngineParseError,
NoHandlerFoundError,
TxtDotError,
} from './types/errors';
import {
EngineFunction,
EngineMatch,
Engines,
RouteValues,
EnginesMatch,
HandlerInput,
IHandlerOutput,
Route,
handlerSchema,
} from './types/handler';
export {
Engine,
EngineParseError,
NoHandlerFoundError,
TxtDotError,
EngineFunction,
EngineMatch,
Engines,
RouteValues,
EnginesMatch,
HandlerInput,
IHandlerOutput,
Route,
handlerSchema,
};