Skip to content

Unused type imports Parsable and ParsableFactory are causing build fail #4397

Closed

Description

Kiota generated request builder imports several types from abstractions package.

import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

Among them Parsable and ParsableFactory are never referenced in the generated code.
This is failing to build in projects where tsconfig.json has noUnusedLocals: true such as default Vitejs tsconfig.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    TypeScriptPull requests that update Javascript codeenhancementNew feature or requesthelp wantedIssue caused by core project dependency modules or library

    Type

    No type

    Projects

    • Status

      Done ✔️

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions