feat(facade): add getTypeNameForDebugging function
This commit is contained in:
parent
cd532b00d4
commit
ccb41632c7
|
@ -5,6 +5,8 @@ import 'dart:math' as math;
|
|||
import 'dart:convert' as convert;
|
||||
import 'dart:async' show Future;
|
||||
|
||||
String getTypeNameForDebugging(Type type) => type.toString();
|
||||
|
||||
class Math {
|
||||
static final _random = new math.Random();
|
||||
static int floor(num n) => n.floor();
|
||||
|
|
|
@ -5,6 +5,10 @@ export {_global as global};
|
|||
export var Type = Function;
|
||||
export type Type = new (...args: any[]) => any;
|
||||
|
||||
export function getTypeNameForDebugging(type: Type): string {
|
||||
return type['name'];
|
||||
}
|
||||
|
||||
export class BaseException extends Error {
|
||||
stack;
|
||||
constructor(public message?: string, public originalException?, public originalStack?) {
|
||||
|
|
Loading…
Reference in New Issue