Skip to content

Commit

Permalink
More types fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Jul 26, 2021
1 parent 9fd964e commit a4ede9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/style-spec/expression/definitions/let.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Let implements Expression {
}

serialize() {
const serialized = ["let"];
const serialized = ["let" as unknown];
for (const [name, expr] of this.bindings) {
serialized.push(name, expr.serialize());
}
Expand Down
4 changes: 2 additions & 2 deletions src/style-spec/expression/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ export type CompositeExpression = {

export type StylePropertyExpression = ConstantExpression | SourceExpression | CameraExpression | CompositeExpression;

export function createPropertyExpression(expression: unknown, propertySpec: StylePropertySpecification): Result<StylePropertyExpression, Array<ParsingError>> {
expression = createExpression(expression, propertySpec);
export function createPropertyExpression(expressionInput: unknown, propertySpec: StylePropertySpecification): Result<StylePropertyExpression, Array<ParsingError>> {
let expression = createExpression(expressionInput, propertySpec);
if (expression.result === 'error') {
return expression;
}
Expand Down

0 comments on commit a4ede9a

Please sign in to comment.