openapi-typescript-helpers
Advanced tools
Comparing version 0.0.6 to 0.0.7
# openapi-typescript-helpers | ||
## 0.0.7 | ||
### Patch Changes | ||
- [#1479](https://github.com/drwpow/openapi-typescript/pull/1479) [`c6d945b`](https://github.com/drwpow/openapi-typescript/commit/c6d945be717bb3999178fb3a77292e41e1b7ab80) Thanks [@darwish](https://github.com/darwish)! - Fixed build of openapi-typescript-helpers for CommonJS environments | ||
## 0.0.6 | ||
@@ -4,0 +10,0 @@ |
@@ -89,5 +89,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types */ | ||
/** Find first match of multiple keys */ | ||
export type FilterKeys<Obj, Matchers> = { | ||
[K in keyof Obj]: K extends Matchers ? Obj[K] : never; | ||
}[keyof Obj]; | ||
export type FilterKeys<Obj, Matchers> = Obj[keyof Obj & Matchers]; | ||
/** Return any `[string]/[string]` media type (important because openapi-fetch allows any content response, not just JSON-like) */ | ||
@@ -94,0 +92,0 @@ export type MediaType = `${string}/${string}`; |
{ | ||
"name": "openapi-typescript-helpers", | ||
"description": "TypeScript helpers for consuming openapi-typescript types", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"author": { | ||
@@ -15,4 +15,10 @@ "name": "Drew Powers", | ||
".": { | ||
"default": "./index.js", | ||
"types": "./index.d.ts" | ||
"import": { | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/index.d.cts", | ||
"default": "./dist/cjs/index.cjs" | ||
} | ||
}, | ||
@@ -31,2 +37,5 @@ "./*": "./*" | ||
"scripts": { | ||
"build": "pnpm run build:clean && pnpm run build:js", | ||
"build:clean": "del dist", | ||
"build:js": "node ./scripts/build.js", | ||
"lint": "pnpm run lint:js", | ||
@@ -38,4 +47,4 @@ "lint:js": "eslint \"*.{js,ts}\"", | ||
"devDependencies": { | ||
"typescript": "^5.3.2" | ||
"typescript": "^5.3.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17457
12
236