Skip to content

Commit

Permalink
Fix types path in package.json (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym authored Jun 16, 2023
2 parents 2a7c0e5 + 4f2efc2 commit 351e95a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.0.1",
"description": "OpenAPI schema generator and validator for Cloudflare Workers",
"main": "./dist/itty-router-openapi.js",
"types": "./dist/itty-router-openapi.d.ts",
"types": "./dist/src/itty-router-openapi.d.ts",
"exports": {
".": {
"types": "./dist/itty-router-openapi.d.ts",
"types": "./dist/src/itty-router-openapi.d.ts",
"import": "./dist/itty-router-openapi.mjs",
"require": "./dist/itty-router-openapi.js"
}
Expand Down
2 changes: 1 addition & 1 deletion src/openapi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getReDocUI, getSwaggerUI } from './ui'
import { Router, IRequest } from 'itty-router/cjs/Router'
import { Router, IRequest } from 'itty-router'
import { getFormatedParameters, Query } from './parameters'
import { OpenAPIRouterSchema, OpenAPISchema, RouterOptions, APIType, AuthType, SchemaVersion } from './types'

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RequestLike, Route, RouteEntry, RouterType } from 'itty-router/cjs/Router'
import { Parameter } from './parameters'
import { RequestLike, Route, RouteEntry, RouterType } from 'itty-router'

export interface ClassRoute {
(path: string, ...handlers: OpenAPIRouteSchema[]): OpenAPIRouterSchema
Expand Down

0 comments on commit 351e95a

Please sign in to comment.