You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
556 B
24 lines
556 B
/// <reference path="embind.d.ts" />
|
|
declare namespace extension {
|
|
export interface Bindings {
|
|
_privateExtension(rPtr: number, len: number): number;
|
|
_withObject(obj: CompoundObj): void
|
|
readonly Extension: ExtensionConstructor;
|
|
}
|
|
|
|
export interface ExtensionConstructor {
|
|
new(name?: string): Extension;
|
|
}
|
|
|
|
export interface Extension extends embind.EmbindObject<Extension> {
|
|
getName(): string;
|
|
_setName(name: string): void;
|
|
}
|
|
|
|
export interface CompoundObj {
|
|
alpha: number;
|
|
beta: string;
|
|
gamma?: number;
|
|
}
|
|
}
|