mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 08:45:03 +00:00
Add stricter type check for TemplateSafeValueContainer in templateFormatter
This commit is contained in:
parent
5c55f35339
commit
7a1eed254a
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ function isTemplateSafeValue(value: unknown): value is TemplateSafeValue {
|
|||
}
|
||||
|
||||
export class TemplateSafeValueContainer {
|
||||
// Fake property used for stricter type checks since TypeScript uses structural typing
|
||||
_isTemplateSafeValueContainer: true;
|
||||
|
||||
[key: string]: TemplateSafeValue;
|
||||
|
||||
constructor(data: Record<string, TemplateSafeValue> = {}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue