예제 #1
0
        /// <summary> For a given C# type, generates a typescript type in string form </summary>
        public static String GenerateTypescriptType(Type type, TsOptions options = null)
        {
            if (options == null)
            {
                options = DEFAULT_OPTIONS;
            }
            var typeStack = new Stack <Type>();

            return(GuardedTypeGen(type, options, typeStack));
        }