Community
Participate
Working Groups
In vjojs you can define an otype in a nested class meta type vjo.ctype('funcs.TL1') //< public .props({ //> public func: vjo.otype().defs({ errcb: vjo.NEEDS_IMPL //< public void errcb(Error err); some docs here }).endType(), //> public data: vjo.otype().defs({ // *** BUG: this should appear as "public" in the outline/members views options: { //< public fd: null, //< public int name: null //< public String? } }).endType() }) .protos({ //aaa: vjo.NEEDS_IMPL, //< public int aaa( (void f(Error err)) cb ) // We have to be able to refer to an otypes function as a "ref" bbb: vjo.NEEDS_IMPL, //< public int bbb(TL1.func:errc cb); warning expected typo case ccc: vjo.NEEDS_IMPL, //< public int bbb(TL1.func:errcb cb); no warning expected ccc1: vjo.NEEDS_IMPL, //< public void ccc(TL1.data:options opts); no warning expected ccc2: vjo.NEEDS_IMPL //< public void ccc(TL1.data:optons opts); expect warning typo case }) .options({ metatype: true }) .endType();
fixed in nightly