KC's Workspace
    Preparing search index...

    Interface Deprecation<id, status>

    A deprecated feature in the language.

    dart: "1.74.0", node: false

    interface Deprecation<
        id extends keyof Deprecations = keyof Deprecations,
        status extends DeprecationStatus = DeprecationStatus,
    > {
        deprecatedIn: status extends "future" | "user" ? null : Version;
        description?: string;
        id: id;
        obsoleteIn: status extends "obsolete" ? Version : null;
        status: status;
    }

    Type Parameters

    Index
    deprecatedIn: status extends "future" | "user" ? null : Version

    The version this deprecation first became active in.

    description?: string

    A human-readable description of this deprecation.

    id: id

    The unique ID of this deprecation.

    obsoleteIn: status extends "obsolete" ? Version : null

    The version this deprecation became obsolete in.

    status: status

    The current status of this deprecation.