Reporter | NN __ (NN) |
---|---|
Created | Mar 20, 2018 11:41:51 AM |
Updated | Apr 16, 2018 11:44:51 PM |
Subsystem | TypeScript |
Assignee | Nikita Popov (poksh) |
Priority | Normal |
State | Submitted |
Type | Bug |
Fix version | No Fix versions |
Affected versions | 2018.1 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
This code compiles fine, but ReSharper is not happy.
class BlobShim implements Blob {
constructor(blobParts?: any[], options?: BlobPropertyBag) { }
public msDetachStream(): any { }
public slice(start?: number, end?: number, contentType?: string): Blob {
return new Blob();
}
public msClose(): void { }
public type: string = "";
public size: number = 1;
}
// Subsequent variable 'Blob' declarations must have the same type. But the declare several incompatible types: {new )blobParts?: any[] | undefined, options?: BlobPropertyBag | undefined) => Blob; prototype: Blob; }, any.
var Blob: {
prototype: Blob;
new (blobParts?: any[], options?: BlobPropertyBag): Blob;
} = BlobShim;