From 42ddb43f958c10738c63adfa24ff363fed090588 Mon Sep 17 00:00:00 2001 From: menduz Date: Thu, 8 Sep 2022 20:42:50 -0300 Subject: [PATCH] fix: typings for new version of typescript --- etc/interfaces.api.md | 2 +- package-lock.json | 35 ++++++++++++++++++++++++++++------- package.json | 2 +- src/components/database.ts | 2 +- 4 files changed, 31 insertions(+), 10 deletions(-) diff --git a/etc/interfaces.api.md b/etc/interfaces.api.md index c7b7f59..2207a26 100644 --- a/etc/interfaces.api.md +++ b/etc/interfaces.api.md @@ -61,7 +61,7 @@ export namespace IDatabase { // @public export interface IDatabase { // (undocumented) - query(sql: string): Promise>; + query>(sql: string): Promise>; } // @alpha (undocumented) diff --git a/package-lock.json b/package-lock.json index 52c481a..e010c24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ }, "devDependencies": { "@microsoft/api-extractor": "^7.19.3", - "typescript": "^4.5.4" + "typescript": "^4.8.3" } }, "node_modules/@microsoft/api-extractor": { @@ -52,6 +52,19 @@ "@rushstack/node-core-library": "3.44.3" } }, + "node_modules/@microsoft/api-extractor/node_modules/typescript": { + "version": "4.5.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", + "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/@microsoft/tsdoc": { "version": "0.13.2", "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.13.2.tgz", @@ -457,9 +470,9 @@ "integrity": "sha512-762imXO+myoSDHD9+YxUfSmfT0yGH1j+3s9UJ6uqKkOYIwHH6/gsFo67ZoST0Ey/RSoaps1zGu1N+eiuuCxfeg==" }, "node_modules/typescript": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.4.tgz", - "integrity": "sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==", + "version": "4.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz", + "integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -542,6 +555,14 @@ "semver": "~7.3.0", "source-map": "~0.6.1", "typescript": "~4.5.2" + }, + "dependencies": { + "typescript": { + "version": "4.5.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz", + "integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==", + "dev": true + } } }, "@microsoft/api-extractor-model": { @@ -900,9 +921,9 @@ "integrity": "sha512-762imXO+myoSDHD9+YxUfSmfT0yGH1j+3s9UJ6uqKkOYIwHH6/gsFo67ZoST0Ey/RSoaps1zGu1N+eiuuCxfeg==" }, "typescript": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.4.tgz", - "integrity": "sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==", + "version": "4.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz", + "integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==", "dev": true }, "universalify": { diff --git a/package.json b/package.json index 53cc521..0a7646c 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "homepage": "https://github.com/well-known-components/interfaces#readme", "devDependencies": { "@microsoft/api-extractor": "^7.19.3", - "typescript": "^4.5.4" + "typescript": "^4.8.3" }, "dependencies": { "@types/node": "^16.11.19", diff --git a/src/components/database.ts b/src/components/database.ts index 6fa4776..c3fec8c 100644 --- a/src/components/database.ts +++ b/src/components/database.ts @@ -13,5 +13,5 @@ export namespace IDatabase { * @public */ export interface IDatabase { - query(sql: string): Promise> + query>(sql: string): Promise> }