feat: Runtime type reflection #17
@ -35,17 +35,17 @@ console.log('Result of sqrt(-4)=', sqrt(-4))
|
||||
|
||||
console.log()
|
||||
console.log('1) NUMBER SQRT')
|
||||
console.log('1.1) REFLECTED TYPE:', Specifications.numbers.sqrt.reflectedType)
|
||||
console.log(`1.1) REFLECTED TYPE: "${Specifications.numbers.sqrt.reflectedType}"`)
|
||||
console.log('1.2) PARSED TYPE:', inspect(parseReflectedType('sqrt', Specifications.numbers.sqrt.reflectedType), { depth: null, colors: true }))
|
||||
|
||||
console.log()
|
||||
console.log('2) GENERIC SQUARE')
|
||||
console.log('2.1) REFLECTED TYPE:', Specifications.generic.square.reflectedType)
|
||||
console.log(`1.1) REFLECTED TYPE: "${Specifications.generic.square.reflectedType}"`)
|
||||
console.log('2.2) PARSED TYPE:', inspect(parseReflectedType('square', Specifications.generic.square.reflectedType), { depth: null, colors: true }))
|
||||
|
||||
console.log()
|
||||
console.log('3) COMPLEX SQRT')
|
||||
console.log('3.1) REFLECTED TYPE:', Specifications.complex.sqrt.reflectedType)
|
||||
console.log(`1.1) REFLECTED TYPE: "${Specifications.complex.sqrt.reflectedType}"`)
|
||||
console.log('3.2) PARSED TYPE:', inspect(parseReflectedType('sqrt', Specifications.complex.sqrt.reflectedType), { depth: null, colors: true }))
|
||||
|
||||
// FIXME: cleanup
|
||||
|
Loading…
Reference in New Issue
Block a user