@longzai-intelligence-oxlint/elysia-route-plugin 0.2.11 → 0.2.12
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/index.d.ts +0 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { ESTree } from "@oxlint/plugins";
|
|
2
|
-
//#region src/rules/no-bare-route-path/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* no-bare-route-path 规则定义
|
|
5
4
|
*
|
|
6
5
|
* 检测 Elysia 路由注册与 prefix 配置中的裸路径字面量
|
|
7
6
|
*/
|
|
8
7
|
declare const noBareRoutePathRule: import("@oxlint/plugins").Rule;
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/utils/elysia-route.utils.d.ts
|
|
11
8
|
/**
|
|
12
9
|
* 判断表达式是否以给定前缀开头的路径形态
|
|
13
10
|
*
|
|
@@ -63,8 +60,6 @@ declare function isAllowedPath(path: string, allowedPaths: string[]): boolean;
|
|
|
63
60
|
* @returns 字符串字面量值,非字面量时返回 undefined
|
|
64
61
|
*/
|
|
65
62
|
declare function readPathValue(node: ESTree.Node): string | undefined;
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/types.d.ts
|
|
68
63
|
/**
|
|
69
64
|
* Elysia 路由管理插件类型定义
|
|
70
65
|
*
|
|
@@ -87,8 +82,6 @@ type NoBareRoutePathOptions = {
|
|
|
87
82
|
*/
|
|
88
83
|
allowedPaths?: string[];
|
|
89
84
|
};
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/index.d.ts
|
|
92
85
|
/**
|
|
93
86
|
* elysia-route 插件
|
|
94
87
|
*
|
|
@@ -96,5 +89,4 @@ type NoBareRoutePathOptions = {
|
|
|
96
89
|
* 通过 eslintCompatPlugin 包装以同时支持 Oxlint 和 ESLint 运行时
|
|
97
90
|
*/
|
|
98
91
|
declare const elysiaRoutePlugin: import("@oxlint/plugins").Plugin;
|
|
99
|
-
//#endregion
|
|
100
92
|
export { type ElysiaRouteMethod, type NoBareRoutePathOptions, elysiaRoutePlugin as default, elysiaRoutePlugin, extractPrefixPropertyNode, isAllowedFile, isAllowedPath, isNewElysiaExpression, isPathLikeExpression, isRouteRegistrationCall, noBareRoutePathRule, readPathValue };
|