import { type ModifierableNode } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.ts";
Methods
getFirstModifierByKindOrThrow<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind]
Gets the first modifier of the specified syntax kind or throws if none found.
getFirstModifierByKind<TKind extends SyntaxKind>(kind: TKind): KindToNodeMappings[TKind] | undefined
Gets the first modifier of the specified syntax kind or undefined if none found.
import { ModifierableNode } from "https://dotland.deno.dev/x/ts_morph@17.0.0/mod.ts";
Type Parameters
T extends Constructor<ModifierableNodeExtensionType>
Parameters
Base: T