Upgrade TypeScript to 9.2.0

This commit is contained in:
Henry Mercer 2023-01-18 20:00:33 +00:00
parent 40a75182e7
commit 5f644f971e
2873 changed files with 320828 additions and 210965 deletions

View file

@ -8,9 +8,9 @@ This package contains type definitions for json-schema 4.0, 6.0 and (https://git
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-schema.
### Additional Details
* Last updated: Tue, 06 Jul 2021 21:33:48 GMT
* Last updated: Fri, 25 Mar 2022 14:01:45 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by [Boris Cherny](https://github.com/bcherny), [Cyrille Tuzi](https://github.com/cyrilletuzi), [Lucian Buzzo](https://github.com/lucianbuzzo), [Roland Groza](https://github.com/rolandjitsu), and [Jason Kwok](https://github.com/JasonHK).
These definitions were written by [Boris Cherny](https://github.com/bcherny), [Lucian Buzzo](https://github.com/lucianbuzzo), [Roland Groza](https://github.com/rolandjitsu), and [Jason Kwok](https://github.com/JasonHK).

View file

@ -1,7 +1,6 @@
// Type definitions for json-schema 4.0, 6.0 and 7.0
// Project: https://github.com/kriszyp/json-schema
// Definitions by: Boris Cherny <https://github.com/bcherny>
// Cyrille Tuzi <https://github.com/cyrilletuzi>
// Lucian Buzzo <https://github.com/lucianbuzzo>
// Roland Groza <https://github.com/rolandjitsu>
// Jason Kwok <https://github.com/JasonHK>
@ -141,7 +140,7 @@ export interface JSONSchema4 {
*
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.7
*/
required?: false | string[] | undefined;
required?: boolean | string[] | undefined;
/**
* This attribute defines a schema for all properties that are not
@ -621,6 +620,14 @@ export interface JSONSchema7 {
$schema?: JSONSchema7Version | undefined;
$comment?: string | undefined;
/**
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
*/
$defs?: {
[key: string]: JSONSchema7Definition;
} | undefined;
/**
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
*/

View file

@ -1,6 +1,6 @@
{
"name": "@types/json-schema",
"version": "7.0.8",
"version": "7.0.11",
"description": "TypeScript definitions for json-schema 4.0, 6.0 and",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-schema",
"license": "MIT",
@ -10,11 +10,6 @@
"url": "https://github.com/bcherny",
"githubUsername": "bcherny"
},
{
"name": "Cyrille Tuzi",
"url": "https://github.com/cyrilletuzi",
"githubUsername": "cyrilletuzi"
},
{
"name": "Lucian Buzzo",
"url": "https://github.com/lucianbuzzo",
@ -40,6 +35,6 @@
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "a58f3eeeeaaf6f6dd512e6c35e095675ba3d36c3dbae363a90d6927e672d0906",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "84a402b9e31ddb097f08b5c07c08590bf087035c483db7a4071a04903775dc44",
"typeScriptVersion": "3.9"
}

View file

@ -8,7 +8,7 @@ This package contains type definitions for semver (https://github.com/npm/node-s
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/semver.
### Additional Details
* Last updated: Fri, 23 Jul 2021 22:01:15 GMT
* Last updated: Wed, 26 Oct 2022 20:03:05 GMT
* Dependencies: none
* Global values: none

View file

@ -3,7 +3,7 @@ import Comparator = require('./comparator');
import SemVer = require('./semver');
declare class Range {
constructor(range: string | Range, optionsOrLoose?: boolean | semver.Options);
constructor(range: string | Range, optionsOrLoose?: boolean | semver.RangeOptions);
range: string;
raw: string;

View file

@ -1,7 +1,7 @@
import semver = require('../index');
declare class SemVer {
constructor(version: string | SemVer, optionsOrLoose?: boolean | semver.Options);
constructor(version: string | SemVer, optionsOrLoose?: boolean | semver.RangeOptions);
raw: string;
loose: boolean;

View file

@ -1,3 +1,4 @@
import semver = require('../index');
import SemVer = require('../classes/semver');
/**
@ -12,5 +13,9 @@ import SemVer = require('../classes/semver');
*
* @since 6.1.0
*/
declare function compareBuild(a: string | SemVer, b: string | SemVer): 1 | 0 | -1;
declare function compareBuild(
a: string | SemVer,
b: string | SemVer,
optionsOrLoose?: boolean | semver.Options,
): 1 | 0 | -1;
export = compareBuild;

View file

@ -4,10 +4,6 @@ import SemVer = require('../classes/semver');
/**
* Returns difference between two versions by the release type (major, premajor, minor, preminor, patch, prepatch, or prerelease), or null if the versions are the same.
*/
declare function diff(
v1: string | SemVer,
v2: string | SemVer,
optionsOrLoose?: boolean | semver.Options,
): semver.ReleaseType | null;
declare function diff(v1: string | SemVer, v2: string | SemVer): semver.ReleaseType | null;
export = diff;

View file

@ -8,7 +8,7 @@ import semver = require('../index');
declare function satisfies(
version: string | SemVer,
range: string | Range,
optionsOrLoose?: boolean | semver.Options,
optionsOrLoose?: boolean | semver.RangeOptions,
): boolean;
export = satisfies;

View file

@ -113,6 +113,9 @@ export type ReleaseType = 'major' | 'premajor' | 'minor' | 'preminor' | 'patch'
export interface Options {
loose?: boolean | undefined;
}
export interface RangeOptions extends Options {
includePrerelease?: boolean | undefined;
}
export interface CoerceOptions extends Options {

View file

@ -1,50 +1,50 @@
{
"name": "@types/semver",
"version": "7.3.8",
"description": "TypeScript definitions for semver",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/semver",
"license": "MIT",
"contributors": [
{
"name": "Bart van der Schoor",
"url": "https://github.com/Bartvds",
"githubUsername": "Bartvds"
"name": "@types/semver",
"version": "7.3.13",
"description": "TypeScript definitions for semver",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/semver",
"license": "MIT",
"contributors": [
{
"name": "Bart van der Schoor",
"url": "https://github.com/Bartvds",
"githubUsername": "Bartvds"
},
{
"name": "BendingBender",
"url": "https://github.com/BendingBender",
"githubUsername": "BendingBender"
},
{
"name": "Lucian Buzzo",
"url": "https://github.com/LucianBuzzo",
"githubUsername": "LucianBuzzo"
},
{
"name": "Klaus Meinhardt",
"url": "https://github.com/ajafff",
"githubUsername": "ajafff"
},
{
"name": "ExE Boss",
"url": "https://github.com/ExE-Boss",
"githubUsername": "ExE-Boss"
},
{
"name": "Piotr Błażejewicz",
"url": "https://github.com/peterblazejewicz",
"githubUsername": "peterblazejewicz"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/semver"
},
{
"name": "BendingBender",
"url": "https://github.com/BendingBender",
"githubUsername": "BendingBender"
},
{
"name": "Lucian Buzzo",
"url": "https://github.com/LucianBuzzo",
"githubUsername": "LucianBuzzo"
},
{
"name": "Klaus Meinhardt",
"url": "https://github.com/ajafff",
"githubUsername": "ajafff"
},
{
"name": "ExE Boss",
"url": "https://github.com/ExE-Boss",
"githubUsername": "ExE-Boss"
},
{
"name": "Piotr Błażejewicz",
"url": "https://github.com/peterblazejewicz",
"githubUsername": "peterblazejewicz"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/semver"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "9f17862a79b39f8289a2ac1d3bf53c50947aa9c048bafe1ce72418667cf56e27",
"typeScriptVersion": "3.6"
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "5443a0792891f230352efbc23f545699de0ce8eef9fe3e28cefd36a3fe993eb6",
"typeScriptVersion": "4.1"
}

View file

@ -8,7 +8,7 @@ import semver = require('../index');
declare function gtr(
version: string | SemVer,
range: string | Range,
optionsOrLoose?: boolean | semver.Options,
optionsOrLoose?: boolean | semver.RangeOptions,
): boolean;
export = gtr;

View file

@ -7,7 +7,7 @@ import semver = require('../index');
declare function intersects(
range1: string | Range,
range2: string | Range,
optionsOrLoose?: boolean | semver.Options,
optionsOrLoose?: boolean | semver.RangeOptions,
): boolean;
export = intersects;

View file

@ -8,7 +8,7 @@ import semver = require('../index');
declare function ltr(
version: string | SemVer,
range: string | Range,
optionsOrLoose?: boolean | semver.Options,
optionsOrLoose?: boolean | semver.RangeOptions,
): boolean;
export = ltr;

View file

@ -8,7 +8,7 @@ import semver = require('../index');
declare function maxSatisfying<T extends string | SemVer>(
versions: ReadonlyArray<T>,
range: string | Range,
optionsOrLoose?: boolean | semver.Options,
optionsOrLoose?: boolean | semver.RangeOptions,
): T | null;
export = maxSatisfying;

View file

@ -8,7 +8,7 @@ import semver = require('../index');
declare function minSatisfying<T extends string | SemVer>(
versions: ReadonlyArray<T>,
range: string | Range,
optionsOrLoose?: boolean | semver.Options,
optionsOrLoose?: boolean | semver.RangeOptions,
): T | null;
export = minSatisfying;

View file

@ -10,6 +10,6 @@ declare function outside(
version: string | SemVer,
range: string | Range,
hilo: '>' | '<',
optionsOrLoose?: boolean | semver.Options,
optionsOrLoose?: boolean | semver.RangeOptions,
): boolean;
export = outside;

View file

@ -4,10 +4,6 @@ import semver = require('../index');
/**
* Return true if the subRange range is entirely contained by the superRange range.
*/
declare function subset(
sub: string | Range,
dom: string | Range,
options?: semver.Options,
): boolean;
declare function subset(sub: string | Range, dom: string | Range, options?: semver.RangeOptions): boolean;
export = subset;

View file

@ -4,6 +4,6 @@ import semver = require('../index');
/**
* Mostly just for testing and legacy API reasons
*/
declare function toComparators(range: string | Range, optionsOrLoose?: boolean | semver.Options): string;
declare function toComparators(range: string | Range, optionsOrLoose?: boolean | semver.Options): string[][];
export = toComparators;

View file

@ -6,7 +6,7 @@ import semver = require('../index');
*/
declare function validRange(
range: string | Range | null | undefined,
optionsOrLoose?: boolean | semver.Options,
optionsOrLoose?: boolean | semver.RangeOptions,
): string | null;
export = validRange;