Skip to content

lib/lib.d.ts error Cannot find name 'object'. #14647

@Skuriles

Description

@Skuriles

TypeScript Version: 2.2.1

using gulp typescript with latest version 2.2.1 of typescript throws errors:

typescript/lib/lib.d.ts(163,15): error TS2304: Cannot find name 'object'.
typescript/lib/lib.d.ts(170,15): error TS2304: Cannot find name 'object'.

Expected behavior:
Compile without errors

Actual behavior:

typescript/lib/lib.d.ts(163,15): error TS2304: Cannot find name 'object'.
typescript/lib/lib.d.ts(170,15): error TS2304: Cannot find name 'object'.

-> renaming the lines to the following (just changed object to Object) solves the compile error

create(o: Object | null): any;

    /**
      * Creates an object that has the specified prototype, and that optionally contains specified properties.
      * @param o Object to use as a prototype. May be null
      * @param properties JavaScript object that contains one or more property descriptors.
      */
    create(o: Object | null, properties: PropertyDescriptorMap): any;

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions