Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-types / isSupportedSecretType

Function: isSupportedSecretType()

isSupportedSecretType(t): t is "string" | "openai" | "0g" | "anthropic" | "gemini" | "coinmarketcap" | "deepseek" | "groq" | "moonshot" | "xAPI" | "xApp" | "OkxDexApi" | "alchemy"

Defined in: packages/chaingraph-types/src/port/base/secret.ts:419

Type guard that narrows the type of the given string to a SecretType.

Parameters

t

string

A string that might be a SecretType.

Returns

t is "string" | "openai" | "0g" | "anthropic" | "gemini" | "coinmarketcap" | "deepseek" | "groq" | "moonshot" | "xAPI" | "xApp" | "OkxDexApi" | "alchemy"

Licensed under BUSL-1.1