UNPKG

@blitzjs/installer

Version:

Package installation for the Blitz CLI

9 lines (8 loc) 465 B
import { CommentKind, TypeAnnotationKind, TSTypeAnnotationKind } from 'ast-types/gen/kinds'; import j from 'jscodeshift'; export declare function withComments<Node extends { comments?: CommentKind[] | null; }>(node: Node, comments: CommentKind[]): Node; export declare function withTypeAnnotation<Node extends { typeAnnotation?: TypeAnnotationKind | TSTypeAnnotationKind | null; }>(node: Node, type: Parameters<typeof j.tsTypeAnnotation>[0]): Node;