From d9ee6110d59adfbcee88cd87e4f48523e5fdcaf7 Mon Sep 17 00:00:00 2001 From: MikeDiam Date: Wed, 14 Aug 2024 13:58:43 +0300 Subject: [PATCH] [publish build] add types check action --- .github/workflows/types-check.yml | 24 +++++++++++++++++++ .../util/metadata/uploadMetadata/index.ts | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/types-check.yml diff --git a/.github/workflows/types-check.yml b/.github/workflows/types-check.yml new file mode 100644 index 00000000..6a25a5d9 --- /dev/null +++ b/.github/workflows/types-check.yml @@ -0,0 +1,24 @@ +name: Check SDK types + +on: + pull_request: + branches: [ main, prod ] + +jobs: + check_sdk_branch: + name: Main branch + runs-on: ubuntu-latest + permissions: + contents: read + packages: read + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup node and npm + uses: actions/setup-node@v3 + with: + node-version: '18.x' + + - name: Run Types check + run: 'npx tsc' diff --git a/src/methods/vault/transactions/util/metadata/uploadMetadata/index.ts b/src/methods/vault/transactions/util/metadata/uploadMetadata/index.ts index 69f603e3..3acf879e 100644 --- a/src/methods/vault/transactions/util/metadata/uploadMetadata/index.ts +++ b/src/methods/vault/transactions/util/metadata/uploadMetadata/index.ts @@ -2,7 +2,7 @@ import graphql from '../../../../../../graphql' import { apiUrls, validateArgs } from '../../../../../../utils' -export type UploadMetadataInput = { +type UploadMetadataInput = { image?: string displayName?: string description?: string