You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the Wing SDK includes all of a resource's inflight operations in a separate interface to distinguish them from the preflight class's code and methods. (The interface is also used to type check that every inflight client implements the same operations, e.g. AwsBucketClient extends IBucketClient, AzureBucketClient extends IBucketClient, and so on). The compiler expects every preflight class named Blah to have an interface named IBlahClient in order to merge these into a single type in the type checker.
Instead of a convention, let's annotate the relationship explicitly:
/**
* Represents a cloud object store.
+ * @inflight @monadahq/wingsdk.cloud.IBucketClient
*/
export class Bucket extends BucketBase {
The text was updated successfully, but these errors were encountered:
@inflight annotations have been added to the SDK in a recent commit, just need to update the compiler to use this when importing jsii modules. The code that needs to be updated is here:
Right now the Wing SDK includes all of a resource's inflight operations in a separate interface to distinguish them from the preflight class's code and methods. (The interface is also used to type check that every inflight client implements the same operations, e.g.
AwsBucketClient extends IBucketClient
,AzureBucketClient extends IBucketClient
, and so on). The compiler expects every preflight class namedBlah
to have an interface namedIBlahClient
in order to merge these into a single type in the type checker.Instead of a convention, let's annotate the relationship explicitly:
/** * Represents a cloud object store. + * @inflight @monadahq/wingsdk.cloud.IBucketClient */ export class Bucket extends BucketBase {
The text was updated successfully, but these errors were encountered: