@servicenow/sdk - v4.4.1
    Preparing search index...
    interface TypeElementMemberedNode {
        addCallSignature(
            structure: OptionalKind<CallSignatureDeclarationStructure>,
        ): CallSignatureDeclaration;
        addCallSignatures(
            structures: readonly OptionalKind<CallSignatureDeclarationStructure>[],
        ): CallSignatureDeclaration[];
        addConstructSignature(
            structure: OptionalKind<ConstructSignatureDeclarationStructure>,
        ): ConstructSignatureDeclaration;
        addConstructSignatures(
            structures: readonly OptionalKind<
                ConstructSignatureDeclarationStructure,
            >[],
        ): ConstructSignatureDeclaration[];
        addGetAccessor(
            structure: OptionalKind<GetAccessorDeclarationStructure>,
        ): GetAccessorDeclaration;
        addGetAccessors(
            structures: readonly OptionalKind<GetAccessorDeclarationStructure>[],
        ): GetAccessorDeclaration[];
        addIndexSignature(
            structure: OptionalKind<IndexSignatureDeclarationStructure>,
        ): IndexSignatureDeclaration;
        addIndexSignatures(
            structures: readonly OptionalKind<IndexSignatureDeclarationStructure>[],
        ): IndexSignatureDeclaration[];
        addMember(
            member: string | WriterFunction | TypeElementMemberStructures,
        ): TypeElementTypes | CommentTypeElement;
        addMembers(
            members:
                | string
                | WriterFunction
                | readonly (string | WriterFunction | TypeElementMemberStructures)[],
        ): (TypeElementTypes | CommentTypeElement)[];
        addMethod(
            structure: OptionalKind<MethodSignatureStructure>,
        ): MethodSignature;
        addMethods(
            structures: readonly OptionalKind<MethodSignatureStructure>[],
        ): MethodSignature[];
        addProperties(
            structures: readonly OptionalKind<PropertySignatureStructure>[],
        ): PropertySignature[];
        addProperty(
            structure: OptionalKind<PropertySignatureStructure>,
        ): PropertySignature;
        addSetAccessor(
            structure: OptionalKind<SetAccessorDeclarationStructure>,
        ): SetAccessorDeclaration;
        addSetAccessors(
            structures: readonly OptionalKind<SetAccessorDeclarationStructure>[],
        ): SetAccessorDeclaration[];
        getCallSignature(
            findFunction: (member: CallSignatureDeclaration) => boolean,
        ): CallSignatureDeclaration | undefined;
        getCallSignatureOrThrow(
            findFunction: (member: CallSignatureDeclaration) => boolean,
        ): CallSignatureDeclaration;
        getCallSignatures(): CallSignatureDeclaration[];
        getConstructSignature(
            findFunction: (member: ConstructSignatureDeclaration) => boolean,
        ): ConstructSignatureDeclaration | undefined;
        getConstructSignatureOrThrow(
            findFunction: (member: ConstructSignatureDeclaration) => boolean,
        ): ConstructSignatureDeclaration;
        getConstructSignatures(): ConstructSignatureDeclaration[];
        getGetAccessor(name: string): GetAccessorDeclaration | undefined;
        getGetAccessor(
            findFunction: (member: GetAccessorDeclaration) => boolean,
        ): GetAccessorDeclaration | undefined;
        getGetAccessorOrThrow(name: string): GetAccessorDeclaration;
        getGetAccessorOrThrow(
            findFunction: (member: GetAccessorDeclaration) => boolean,
        ): GetAccessorDeclaration;
        getGetAccessors(): GetAccessorDeclaration[];
        getIndexSignature(
            findFunction: (member: IndexSignatureDeclaration) => boolean,
        ): IndexSignatureDeclaration | undefined;
        getIndexSignatureOrThrow(
            findFunction: (member: IndexSignatureDeclaration) => boolean,
        ): IndexSignatureDeclaration;
        getIndexSignatures(): IndexSignatureDeclaration[];
        getMembers(): TypeElementTypes[];
        getMembersWithComments(): (TypeElementTypes | CommentTypeElement)[];
        getMethod(name: string): MethodSignature | undefined;
        getMethod(
            findFunction: (member: MethodSignature) => boolean,
        ): MethodSignature | undefined;
        getMethodOrThrow(name: string): MethodSignature;
        getMethodOrThrow(
            findFunction: (member: MethodSignature) => boolean,
        ): MethodSignature;
        getMethods(): MethodSignature[];
        getProperties(): PropertySignature[];
        getProperty(name: string): PropertySignature | undefined;
        getProperty(
            findFunction: (member: PropertySignature) => boolean,
        ): PropertySignature | undefined;
        getPropertyOrThrow(name: string): PropertySignature;
        getPropertyOrThrow(
            findFunction: (member: PropertySignature) => boolean,
        ): PropertySignature;
        getSetAccessor(name: string): SetAccessorDeclaration | undefined;
        getSetAccessor(
            findFunction: (member: SetAccessorDeclaration) => boolean,
        ): SetAccessorDeclaration | undefined;
        getSetAccessorOrThrow(name: string): SetAccessorDeclaration;
        getSetAccessorOrThrow(
            findFunction: (member: SetAccessorDeclaration) => boolean,
        ): SetAccessorDeclaration;
        getSetAccessors(): SetAccessorDeclaration[];
        insertCallSignature(
            index: number,
            structure: OptionalKind<CallSignatureDeclarationStructure>,
        ): CallSignatureDeclaration;
        insertCallSignatures(
            index: number,
            structures: readonly OptionalKind<CallSignatureDeclarationStructure>[],
        ): CallSignatureDeclaration[];
        insertConstructSignature(
            index: number,
            structure: OptionalKind<ConstructSignatureDeclarationStructure>,
        ): ConstructSignatureDeclaration;
        insertConstructSignatures(
            index: number,
            structures: readonly OptionalKind<ConstructSignatureDeclarationStructure>[],
        ): ConstructSignatureDeclaration[];
        insertGetAccessor(
            index: number,
            structure: OptionalKind<GetAccessorDeclarationStructure>,
        ): GetAccessorDeclaration;
        insertGetAccessors(
            index: number,
            structures: readonly OptionalKind<GetAccessorDeclarationStructure>[],
        ): GetAccessorDeclaration[];
        insertIndexSignature(
            index: number,
            structure: OptionalKind<IndexSignatureDeclarationStructure>,
        ): IndexSignatureDeclaration;
        insertIndexSignatures(
            index: number,
            structures: readonly OptionalKind<IndexSignatureDeclarationStructure>[],
        ): IndexSignatureDeclaration[];
        insertMember(
            index: number,
            member: string | WriterFunction | TypeElementMemberStructures,
        ): TypeElementTypes | CommentTypeElement;
        insertMembers(
            index: number,
            members:
                | string
                | WriterFunction
                | readonly (string | WriterFunction | TypeElementMemberStructures)[],
        ): (TypeElementTypes | CommentTypeElement)[];
        insertMethod(
            index: number,
            structure: OptionalKind<MethodSignatureStructure>,
        ): MethodSignature;
        insertMethods(
            index: number,
            structures: readonly OptionalKind<MethodSignatureStructure>[],
        ): MethodSignature[];
        insertProperties(
            index: number,
            structures: readonly OptionalKind<PropertySignatureStructure>[],
        ): PropertySignature[];
        insertProperty(
            index: number,
            structure: OptionalKind<PropertySignatureStructure>,
        ): PropertySignature;
        insertSetAccessor(
            index: number,
            structure: OptionalKind<SetAccessorDeclarationStructure>,
        ): SetAccessorDeclaration;
        insertSetAccessors(
            index: number,
            structures: readonly OptionalKind<SetAccessorDeclarationStructure>[],
        ): SetAccessorDeclaration[];
    }
    Index

    Methods

    • Gets the first get accessor by name.

      Parameters

      • name: string

        Name.

      Returns GetAccessorDeclaration | undefined

    • Gets the first get accessor by a find function.

      Parameters

      Returns GetAccessorDeclaration | undefined

    • Gets the first get accessor by name or throws if not found.

      Parameters

      • name: string

        Name.

      Returns GetAccessorDeclaration

    • Gets the first get accessor by a find function or throws if not found.

      Parameters

      Returns GetAccessorDeclaration

    • Gets all the members.

      Returns TypeElementTypes[]

    • Gets the first method by name.

      Parameters

      • name: string

        Name.

      Returns MethodSignature | undefined

    • Gets the first method by a find function.

      Parameters

      • findFunction: (member: MethodSignature) => boolean

        Function to find the method by.

      Returns MethodSignature | undefined

    • Gets the first method by name or throws if not found.

      Parameters

      • name: string

        Name.

      Returns MethodSignature

    • Gets the first method by a find function or throws if not found.

      Parameters

      • findFunction: (member: MethodSignature) => boolean

        Function to find the method by.

      Returns MethodSignature

    • Gets the interface method signatures.

      Returns MethodSignature[]

    • Gets the interface property signatures.

      Returns PropertySignature[]

    • Gets the first property by name.

      Parameters

      • name: string

        Name.

      Returns PropertySignature | undefined

    • Gets the first property by a find function.

      Parameters

      • findFunction: (member: PropertySignature) => boolean

        Function to find the property by.

      Returns PropertySignature | undefined

    • Gets the first property by name or throws if not found.

      Parameters

      • name: string

        Name.

      Returns PropertySignature

    • Gets the first property by a find function or throws if not found.

      Parameters

      • findFunction: (member: PropertySignature) => boolean

        Function to find the property by.

      Returns PropertySignature

    • Gets the first set accessor by name.

      Parameters

      • name: string

        Name.

      Returns SetAccessorDeclaration | undefined

    • Gets the first set accessor by a find function.

      Parameters

      Returns SetAccessorDeclaration | undefined

    • Gets the first set accessor by name or throws if not found.

      Parameters

      • name: string

        Name.

      Returns SetAccessorDeclaration

    • Gets the first set accessor by a find function or throws if not found.

      Parameters

      Returns SetAccessorDeclaration