-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See [CHANGELOG](https://github.com/aws/jsii/blob/bump/1.65.0/CHANGELOG.md)
- Loading branch information
Showing
39 changed files
with
6,588 additions
and
910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mkdocs~=1.3.1 | ||
mkdocs-awesome-pages-plugin~=2.8.0 | ||
mkdocs-material~=8.3.9 | ||
mkdocs-material~=8.4.0 | ||
mkdocs-git-revision-date-plugin~=0.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ | |
"rejectCycles": true | ||
} | ||
}, | ||
"version": "1.64.0" | ||
"version": "1.65.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/@jsii/dotnet-runtime/src/Amazon.JSII.Runtime/Deputy/AnonymousObject.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
namespace Amazon.JSII.Runtime.Deputy | ||
{ | ||
internal sealed class AnonymousObject : DeputyBase | ||
public sealed class AnonymousObject : DeputyBase | ||
{ | ||
internal AnonymousObject(ByRefValue byRefValue) : base(byRefValue) | ||
{ | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
export interface IOptionA { | ||
doSomething(): string; | ||
} | ||
|
||
export interface IOptionB { | ||
doSomethingElse(): string; | ||
} | ||
|
||
export class UseOptions { | ||
public static provide(which: 'A' | 'B'): IOptionA | IOptionB { | ||
switch (which) { | ||
case 'A': | ||
return new OptionA(); | ||
case 'B': | ||
return new OptionB(); | ||
default: | ||
throw new Error(`Unexpected option: ${which as any}`); | ||
} | ||
} | ||
|
||
public static privideAsAny(which: 'A' | 'B'): any { | ||
return this.provide(which); | ||
} | ||
|
||
public static consume(option: IOptionA | IOptionB): string { | ||
if (option instanceof OptionA) { | ||
return option.doSomething(); | ||
} else if (option instanceof OptionB) { | ||
return option.doSomethingElse(); | ||
} | ||
throw new Error(`Unexpected option: ${option as any}`); | ||
} | ||
|
||
private constructor() {} | ||
} | ||
|
||
class OptionA implements IOptionA { | ||
public doSomething(): string { | ||
return 'A'; | ||
} | ||
} | ||
|
||
class OptionB implements IOptionB { | ||
public doSomethingElse(): string { | ||
return 'B'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.