mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 22:05:01 +00:00
Type fixes + use template safe values for renderTemplate() everywhere
This commit is contained in:
parent
e16eb8c8d1
commit
d109a58cb7
21 changed files with 190 additions and 98 deletions
3
backend/src/utils/isScalar.ts
Normal file
3
backend/src/utils/isScalar.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function isScalar(value: unknown): value is string | number | boolean | null | undefined {
|
||||
return value == null || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue