Skip to content

Commit

Permalink
named import
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum committed Nov 16, 2024
1 parent ae12baf commit fc797f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/expression/definitions/interpolate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number>;
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/expression/values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (!(
Expand Down

0 comments on commit fc797f1

Please sign in to comment.