@nooh-ts/nooh 0.1.0

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.
@@ -0,0 +1,21 @@
1
+ //#region src/config.d.ts
2
+ interface NoohConfigOptions {
3
+ readonly routes?: string;
4
+ }
5
+ interface NoohConfig<Environment> extends NoohConfigOptions {
6
+ readonly __nooh_env: Environment;
7
+ }
8
+ type ConfigEnvironment<T> = T extends {
9
+ readonly __nooh_env: infer Environment;
10
+ } ? Environment : never;
11
+ interface NoohGroupOptions<Middleware = unknown> {
12
+ readonly middleware?: readonly Middleware[];
13
+ }
14
+ interface NoohGroup<Middleware = unknown> {
15
+ readonly middleware?: readonly Middleware[];
16
+ }
17
+ export declare const config: <Environment>(options?: NoohConfigOptions) => NoohConfig<Environment>;
18
+ export declare const group: <Middleware = unknown>(options?: NoohGroupOptions<Middleware>) => NoohGroup<Middleware>;
19
+ //#endregion
20
+ export type { ConfigEnvironment, NoohConfig, NoohConfigOptions, NoohGroup, NoohGroupOptions };
21
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/config.ts"],"mappings":";UAAiB;WACN;;UAGM,WAAW,qBAAqB;WACtC,YAAY;;KAGX,kBAAkB,KAAK;WACxB,kBAAkB;IAEzB;UAGa,iBAAiB;WACvB,sBAAsB;;UAGhB,UAAU;WAChB,sBAAsB;;qBAGpB,SAAU,aACrB,UAAS,sBACR,WAAW;qBAED,QAAS,sBACpB,UAAS,iBAAiB,gBACzB,UAAU"}
package/dist/index.mjs ADDED
@@ -0,0 +1,7 @@
1
+ //#region src/config.ts
2
+ const config = (options = {}) => options;
3
+ const group = (options = {}) => options;
4
+ //#endregion
5
+ export { config, group };
6
+
7
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/config.ts"],"sourcesContent":["export interface NoohConfigOptions {\n readonly routes?: string;\n}\n\nexport interface NoohConfig<Environment> extends NoohConfigOptions {\n readonly __nooh_env: Environment;\n}\n\nexport type ConfigEnvironment<T> = T extends {\n readonly __nooh_env: infer Environment;\n}\n ? Environment\n : never;\n\nexport interface NoohGroupOptions<Middleware = unknown> {\n readonly middleware?: readonly Middleware[];\n}\n\nexport interface NoohGroup<Middleware = unknown> {\n readonly middleware?: readonly Middleware[];\n}\n\nexport const config = <Environment>(\n options: NoohConfigOptions = {}\n): NoohConfig<Environment> => options as NoohConfig<Environment>;\n\nexport const group = <Middleware = unknown>(\n options: NoohGroupOptions<Middleware> = {}\n): NoohGroup<Middleware> => options;\n"],"mappings":";AAsBA,MAAa,UACX,UAA6B,CAAC,MACF;AAE9B,MAAa,SACX,UAAwC,CAAC,MACf"}
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@nooh-ts/nooh",
3
+ "version": "0.1.0",
4
+ "description": "🧊 A zero-dependency, compile-time metaframework for building type-safe file-based Hono APIs.",
5
+ "keywords": [
6
+ "nooh",
7
+ "hono",
8
+ "framework",
9
+ "typescript",
10
+ "routing"
11
+ ],
12
+ "homepage": "https://nooh-ts.pages.dev",
13
+ "bugs": {
14
+ "url": "https://github.com/nehu3n/nooh/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/nehu3n/nooh.git",
19
+ "directory": "packages/nooh"
20
+ },
21
+ "license": "MIT",
22
+ "type": "module",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.mts",
26
+ "import": "./dist/index.mjs"
27
+ }
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "readme.md"
32
+ ],
33
+ "devDependencies": {
34
+ "tsdown": "^0.23.0",
35
+ "typescript": "^7.0.2"
36
+ },
37
+ "peerDependencies": {
38
+ "@hono/standard-validator": "^0.4.0"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "scripts": {
44
+ "build": "tsdown",
45
+ "dev": "tsdown --watch",
46
+ "typecheck": "tsc --noEmit"
47
+ }
48
+ }
package/readme.md ADDED
File without changes