mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
17 lines
262 B
JavaScript
17 lines
262 B
JavaScript
// @flow
|
|
|
|
declare class ImmBox<T> {
|
|
static <U>(x: any): ImmBox<U>;
|
|
static (x: any): any;
|
|
}
|
|
|
|
declare class Box<T> {
|
|
constructor(x: T): void;
|
|
set(value: T): void;
|
|
get(): T;
|
|
}
|
|
|
|
const outer = new Box();
|
|
const inner = outer.get();
|
|
outer.set(ImmBox(inner));
|