-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrading all apk packages to solve CVE-2024-2511 (#173)
* chore: upgrading all apk packages to solve CVE-2024-2511 * fix import
- Loading branch information
1 parent
06a70c5
commit 566c9e8
Showing
4 changed files
with
250 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import type { FromSchema } from 'json-schema-to-ts'; | ||
import type { FromSchema, JSONSchema7 } from 'json-schema-to-ts'; | ||
|
||
// Recursively remove readonly modifiers from properties. | ||
type DeepMutable<T> = { | ||
-readonly [P in keyof T]: DeepMutable<T[P]>; | ||
}; | ||
|
||
// Create a type from a const schema object. | ||
export type CreateSchemaType<T> = FromSchema<T>; | ||
export type CreateSchemaType<T extends JSONSchema7> = FromSchema<T>; | ||
|
||
// Create an OpenAPIV3.SchemaObject from a const schema object. | ||
export const createSchemaObject = <T>(schema: T): DeepMutable<T> => schema; |
Oops, something went wrong.