From fc797f167c690c8e05bfb9ee1dbeea275794935a Mon Sep 17 00:00:00 2001 From: Birk Skyum Date: Sat, 16 Nov 2024 20:58:56 +0100 Subject: [PATCH] named import --- src/expression/definitions/interpolate.ts | 4 ++-- src/expression/values.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/expression/definitions/interpolate.ts b/src/expression/definitions/interpolate.ts index df37847e..8014f4e5 100644 --- a/src/expression/definitions/interpolate.ts +++ b/src/expression/definitions/interpolate.ts @@ -26,7 +26,7 @@ type InterpolatedValueType = NumberTypeT | ColorTypeT | StringTypeT | Projection export class Interpolate implements Expression { type: InterpolatedValueType; - operator: 'interpolate' | 'interpolate-hcl' | 'interpolate-lab' ; + operator: 'interpolate' | 'interpolate-hcl' | 'interpolate-lab'; interpolation: InterpolationType; input: Expression; labels: Array; @@ -172,7 +172,7 @@ export class Interpolate implements Expression { const outputLower = outputs[index].evaluate(ctx); const outputUpper = outputs[index + 1].evaluate(ctx); - + switch (this.operator) { case 'interpolate': switch (this.type.kind) { diff --git a/src/expression/values.ts b/src/expression/values.ts index 8da3aeb7..2a3d0398 100644 --- a/src/expression/values.ts +++ b/src/expression/values.ts @@ -8,7 +8,7 @@ import {ResolvedImage} from './types/resolved_image'; import {NullType, NumberType, StringType, BooleanType, ColorType, ObjectType, ValueType, CollatorType, FormattedType, ResolvedImageType, array, PaddingType, VariableAnchorOffsetCollectionType, ProjectionDefinitionType} from './types'; import type {Type} from './types'; -import ProjectionDefinition from './types/projection_definition'; +import {ProjectionDefinition} from './types/projection_definition'; export function validateRGBA(r: unknown, g: unknown, b: unknown, a?: unknown): string | null { if (!(