chore: knip fix (#34481)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Stephen Zhou
2026-04-02 23:03:42 +08:00
committed by GitHub
parent 985b41c40b
commit 36e840cd87
403 changed files with 475 additions and 3679 deletions

View File

@@ -1,4 +1,4 @@
export type DownloadUrlOptions = {
type DownloadUrlOptions = {
url: string
fileName?: string
rel?: string

View File

@@ -12,7 +12,7 @@
* @param plaintext - The plain text to encode
* @returns Base64 encoded text
*/
export function encryptField(plaintext: string): string {
function encryptField(plaintext: string): string {
try {
// Base64 encode the plaintext
// btoa works with ASCII, so we need to handle UTF-8 properly

View File

@@ -51,7 +51,7 @@ export const getNewVarInWorkflow = (key: string, type = InputVarType.textInput):
}
}
export type VarKeyErrorMessageKey = I18nKeysByPrefix<'appDebug', 'varKeyError.'>
type VarKeyErrorMessageKey = I18nKeysByPrefix<'appDebug', 'varKeyError.'>
export const checkKey = (key: string, canBeEmpty?: boolean, _keys?: string[]): true | VarKeyErrorMessageKey => {
if (key.length === 0 && !canBeEmpty)