diff --git a/package.json b/package.json index cc1d1bdd..234af548 100644 --- a/package.json +++ b/package.json @@ -164,7 +164,7 @@ "eslint-plugin-react": "^7.31.11", "eslint-plugin-total-functions": "^6.0.0", "eslint-webpack-plugin": "^3.2.0", - "prettier": "^2.8.1" + "prettier": "^2.8.2" }, "packageManager": "yarn@3.3.0", "resolutions": { diff --git a/src/alerts.ts b/src/alerts.ts index 17259527..0748ae1f 100644 --- a/src/alerts.ts +++ b/src/alerts.ts @@ -31,7 +31,7 @@ export type AlertDomain = keyof typeof alertDomains; * Gets the type of available specific alerts for a domain. * @template D The domain. */ -export type AlertSpecific = keyof typeof alertDomains[D]; +export type AlertSpecific = keyof (typeof alertDomains)[D]; /** * Gets the instance type of the object in the lookup table. @@ -41,7 +41,7 @@ export type AlertSpecific = keyof typeof alertDomains[D]; type AlertInstance< D extends AlertDomain, S extends AlertSpecific, -> = typeof alertDomains[D][S] extends CreateToast +> = (typeof alertDomains)[D][S] extends CreateToast ? CreateToast : never; diff --git a/yarn.lock b/yarn.lock index 30a4f132..c52b6ad6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2496,7 +2496,7 @@ __metadata: postcss-loader: ^7.0.2 postcss-normalize: ^10.0.1 postcss-preset-env: ^7.8.3 - prettier: ^2.8.1 + prettier: ^2.8.2 prompts: ^2.4.2 prop-types: ^15.8.1 pyodide: 0.22.0 @@ -12614,12 +12614,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^2.8.1": - version: 2.8.1 - resolution: "prettier@npm:2.8.1" +"prettier@npm:^2.8.2": + version: 2.8.2 + resolution: "prettier@npm:2.8.2" bin: prettier: bin-prettier.js - checksum: 4f21a0f1269f76fb36f54e9a8a1ea4c11e27478958bf860661fb4b6d7ac69aac1581f8724fa98ea3585e56d42a2ea317a17ff6e3324f40cb11ff9e20b73785cc + checksum: 740c56c2128d587d656ea1dde9bc9c3503dfc94db4f3ac387259215eeb2e216680bdad9d18a0c9feecc6b42cfa188d6fa777df4c36c1d00cedd4199074fbfbd2 languageName: node linkType: hard