Skip to content

Commit

Permalink
Fix small comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Nov 16, 2024
1 parent 19b65b6 commit ca33ddc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/expression/values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {Formatted} from './types/formatted';
import {Padding} from './types/padding';
import {VariableAnchorOffsetCollection} from './types/variable_anchor_offset_collection';
import {ResolvedImage} from './types/resolved_image';
import {ProjectionDefinition} from './types/projection_definition';
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';

export function validateRGBA(r: unknown, g: unknown, b: unknown, a?: unknown): string | null {
if (!(
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {typeOf} from './expression/values';
import {FormatExpression} from './expression/definitions/format';
import {Literal} from './expression/definitions/literal';
import {CompoundExpression} from './expression/compound_expression';
import {ProjectionDefinitionSpecification, VariableAnchorOffsetCollectionSpecification} from './types.g';
import {ColorSpecification, PaddingSpecification, ProjectionDefinitionSpecification, VariableAnchorOffsetCollectionSpecification} from './types.g';
import {format} from './format';
import {validate} from './validate/validate';
import {migrate} from './migrate';
Expand Down Expand Up @@ -80,7 +80,7 @@ export type StylePropertySpecification = {
'property-type': ExpressionType;
expression?: ExpressionSpecificationDefinition;
transition: boolean;
default?: string;
default?: ColorSpecification;
overridable: boolean;
} | {
type: 'array';
Expand All @@ -103,7 +103,7 @@ export type StylePropertySpecification = {
'property-type': ExpressionType;
expression?: ExpressionSpecificationDefinition;
transition: boolean;
default?: number | Array<number>;
default?: PaddingSpecification;
} | {
type: 'variableAnchorOffsetCollection';
'property-type': ExpressionType;
Expand Down

0 comments on commit ca33ddc

Please sign in to comment.