Skip to content

Unable to do module augmentation #7148

Description

@yortus

TypeScript Version:

nightly (1.9.0-dev.20160217)

Code:

// OK - fixed by #6742
declare module 'express' {
    interface Request {
        id: number;
    }
}

// ERROR: Cannot augment module 'knockout' because it resolves to a non-module entity
declare module 'knockout' {
    interface KnockoutStatic {
        track(obj: any, propertyNames?: string[]): any;
        mapping: KnockoutMapping;
    }
}

// ERROR: Cannot augment module 'jquery' because it resolves to a non-module entity
declare module 'jquery' {
    interface JQuery {
        timepicker(): JQuery;
        timepicker(options: TimePickerOptions): JQuery;
    }
}

Asking the same thing as #6722, but for jquery and knockout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions