aws-crt
Version:
NodeJS/browser bindings to the aws-c-* libraries
32 lines (31 loc) • 800 B
TypeScript
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
/**
* Represents an object allocated natively inside the AWS CRT.
* @internal
*/
export declare class NativeResource {
private handle;
constructor(handle: any);
native_handle(): any;
}
/** @internal */
declare type Ctor<T> = new (...args: any[]) => T;
/**
* Represents an object allocated natively inside the AWS CRT which also
* needs a node/TS base class
* @internal
*/
export declare function NativeResourceMixin<T extends Ctor<{}>>(Base: T): {
new (...args: any[]): {
/** @internal */
_handle: any;
/** @internal */
_super(handle: any): void;
/** @internal */
native_handle(): any;
};
} & T;
export {};