Skip to content

Commit 4a53def

Browse files
committed
chore: Improve typing
1 parent 7cb41a5 commit 4a53def

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/resolveObjectValuesToArray.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { ASTNode, namedTypes as t } from 'ast-types';
22
import resolveToValue from './resolveToValue';
33
import type { Importer } from '../parse';
44
import type { NodePath } from 'ast-types/lib/node-path';
5-
import { LiteralBuilder } from 'ast-types/gen/builders';
65

76
interface ObjectPropMap {
87
properties: string[];
@@ -139,7 +138,7 @@ export default function resolveObjectValuesToArray(
139138

140139
if (propMap) {
141140
const nodes = propMap.properties.map(prop => {
142-
const value = propMap.values[prop] as Parameters<LiteralBuilder>[0];
141+
const value = propMap.values[prop];
143142

144143
return typeof value === 'undefined'
145144
? 'null'

0 commit comments

Comments
 (0)