Skip to content

Commit

Permalink
Fix TypeScript warnings in the specs files
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed Mar 28, 2024
1 parent 2742653 commit 2000f26
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/specs/references/class/constructorsWithSpread.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export class Logger {
constructor()

constructor(...args: string)
constructor(...args: string[])
}
2 changes: 1 addition & 1 deletion tests/specs/references/class/constructorsWithSpread.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Exports =
[<Import("Logger", "module"); EmitConstructor>]
static member Logger () : Logger = nativeOnly
[<Import("Logger", "module"); EmitConstructor>]
static member Logger ([<ParamArray>] args: string []) : Logger = nativeOnly
static member Logger ([<ParamArray>] args: ResizeArray<string> []) : Logger = nativeOnly

[<AllowNullLiteral>]
[<Interface>]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare class Fuse {
export declare class Fuse {
// member is a reserved word in F# and should emit as ``member`` for the F# code
// but as `member` for the emitted JS code
static member: string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
declare class Fuse {
export declare class Fuse {
public version: string
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
declare class Fuse {
export declare class Fuse {
static version: string
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
declare class Fuse {
static readonly public version: string
public static readonly version: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ interface ArtworksData {
artworks: string[];
}

namespace Error {
export namespace Error {
export interface ErrorHandling {
success: boolean;
error?: string;
}
}

type ArtworksResponse = ArtworksData & Error.ErrorHandling;
export type ArtworksResponse = ArtworksData & Error.ErrorHandling;

0 comments on commit 2000f26

Please sign in to comment.