From 83446bf5d3df8817f9f016544d01d60ad070aa7a Mon Sep 17 00:00:00 2001 From: Jordan Shatford Date: Thu, 28 Mar 2024 09:34:16 +1100 Subject: [PATCH] revert: use ts-ignore instead of ts-expect-error --- src/templates/core/functions/base64.hbs | 2 +- test/__snapshots__/v2/test/generated/v2/core/request.ts.snap | 2 +- .../v3-client/test/generated/v3_client/core/request.ts.snap | 2 +- .../test/generated/v3_legacy_enums/core/request.ts.snap | 2 +- .../v3-options/test/generated/v3_options/core/request.ts.snap | 2 +- test/__snapshots__/v3/test/generated/v3/core/request.ts.snap | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/templates/core/functions/base64.hbs b/src/templates/core/functions/base64.hbs index 24a755571..5b7e43aed 100644 --- a/src/templates/core/functions/base64.hbs +++ b/src/templates/core/functions/base64.hbs @@ -2,7 +2,7 @@ export const base64 = (str: string): string => { try { return btoa(str); } catch (err) { - // @ts-expect-error Buffer may not be found. + // @ts-ignore return Buffer.from(str).toString('base64'); } }; diff --git a/test/__snapshots__/v2/test/generated/v2/core/request.ts.snap b/test/__snapshots__/v2/test/generated/v2/core/request.ts.snap index cf05b32ff..b8c84b846 100644 --- a/test/__snapshots__/v2/test/generated/v2/core/request.ts.snap +++ b/test/__snapshots__/v2/test/generated/v2/core/request.ts.snap @@ -35,7 +35,7 @@ export const base64 = (str: string): string => { try { return btoa(str); } catch (err) { - // @ts-expect-error Buffer may not be found. + // @ts-ignore return Buffer.from(str).toString('base64'); } }; diff --git a/test/__snapshots__/v3-client/test/generated/v3_client/core/request.ts.snap b/test/__snapshots__/v3-client/test/generated/v3_client/core/request.ts.snap index cf05b32ff..b8c84b846 100644 --- a/test/__snapshots__/v3-client/test/generated/v3_client/core/request.ts.snap +++ b/test/__snapshots__/v3-client/test/generated/v3_client/core/request.ts.snap @@ -35,7 +35,7 @@ export const base64 = (str: string): string => { try { return btoa(str); } catch (err) { - // @ts-expect-error Buffer may not be found. + // @ts-ignore return Buffer.from(str).toString('base64'); } }; diff --git a/test/__snapshots__/v3-legacy-enums/test/generated/v3_legacy_enums/core/request.ts.snap b/test/__snapshots__/v3-legacy-enums/test/generated/v3_legacy_enums/core/request.ts.snap index cf05b32ff..b8c84b846 100644 --- a/test/__snapshots__/v3-legacy-enums/test/generated/v3_legacy_enums/core/request.ts.snap +++ b/test/__snapshots__/v3-legacy-enums/test/generated/v3_legacy_enums/core/request.ts.snap @@ -35,7 +35,7 @@ export const base64 = (str: string): string => { try { return btoa(str); } catch (err) { - // @ts-expect-error Buffer may not be found. + // @ts-ignore return Buffer.from(str).toString('base64'); } }; diff --git a/test/__snapshots__/v3-options/test/generated/v3_options/core/request.ts.snap b/test/__snapshots__/v3-options/test/generated/v3_options/core/request.ts.snap index cf05b32ff..b8c84b846 100644 --- a/test/__snapshots__/v3-options/test/generated/v3_options/core/request.ts.snap +++ b/test/__snapshots__/v3-options/test/generated/v3_options/core/request.ts.snap @@ -35,7 +35,7 @@ export const base64 = (str: string): string => { try { return btoa(str); } catch (err) { - // @ts-expect-error Buffer may not be found. + // @ts-ignore return Buffer.from(str).toString('base64'); } }; diff --git a/test/__snapshots__/v3/test/generated/v3/core/request.ts.snap b/test/__snapshots__/v3/test/generated/v3/core/request.ts.snap index cf05b32ff..b8c84b846 100644 --- a/test/__snapshots__/v3/test/generated/v3/core/request.ts.snap +++ b/test/__snapshots__/v3/test/generated/v3/core/request.ts.snap @@ -35,7 +35,7 @@ export const base64 = (str: string): string => { try { return btoa(str); } catch (err) { - // @ts-expect-error Buffer may not be found. + // @ts-ignore return Buffer.from(str).toString('base64'); } };