How to use the tsAnyKeyword function from @babel/types

Find comprehensive JavaScript @babel/types.tsAnyKeyword code examples handpicked from public code repositorys.

57
58
59
60
61
62
63
64
65
66
        member.type === "TSPropertySignature");
};
const addIndexSignature = (acc, el) => {
    var _a;
    const { name } = el.parameters[0];
    const type = ((_a = el.typeAnnotation) === null || _a === void 0 ? void 0 : _a.typeAnnotation) || t.tsAnyKeyword();
    return { ...acc, [name]: { type, isIndex: true, isOptional: false } };
};
const addPropertySignature = (acc, el) => {
    var _a;
fork icon0
star icon0
watch icon0

+ 51 other calls in file

Other functions in @babel/types

Sorted by popularity

function icon

@babel/types.identifier is the most popular function in @babel/types (20936 examples)