diff --git a/src/components/types.ts b/src/components/types.ts index 6299043b..cc7a0c50 100644 --- a/src/components/types.ts +++ b/src/components/types.ts @@ -31,7 +31,7 @@ export interface IHooks { } -export type IStaticPath = (language: string, type?: string) => string; +export type IStaticPath = (language: string, type?: string) => string | undefined; export interface IComponentModule { hooks: IHooks; diff --git a/templates/client/typescript/_package.json b/templates/client/typescript/_package.json index b68ba442..cc0dfd66 100644 --- a/templates/client/typescript/_package.json +++ b/templates/client/typescript/_package.json @@ -14,7 +14,7 @@ "license": "Apache-2.0", "dependencies": { "@open-rpc/client-js": "1.7.0", - "@open-rpc/meta-schema": "^1.14.2", + "@open-rpc/meta-schema": "1.14.2", "@open-rpc/schema-utils-js": "1.15.0", "@types/json-schema": "7.0.3", "@types/lodash": "^4.14.149",