Пример #1
0
        public void IndexedType()
        {
            var type = new Schema(BifoqlType.Index(BifoqlType.String,
                                                   BifoqlType.IndexParameter("a", BifoqlType.Number, true),
                                                   BifoqlType.IndexParameter("b", BifoqlType.Boolean),
                                                   BifoqlType.IndexSwitch("c")));

            Assert.Equal("(a?: number, b: boolean, c?: boolean) => string", type.BuildDocumentation());
        }