chore: Remove use of ts-macros (#3)
Plan is to use a custom build step instead. Reviewed-on: #3 Co-authored-by: Glen Whitney <glen@studioinfinity.org> Co-committed-by: Glen Whitney <glen@studioinfinity.org>
This commit is contained in:
parent
2a7723df68
commit
239215c234
7 changed files with 19 additions and 178 deletions
|
@ -1,5 +1,4 @@
|
|||
import {implementations} from '@/core/Dispatcher'
|
||||
import {$reflect} from '@/interfaces/type'
|
||||
import type {CommonSignature} from '@/interfaces/type'
|
||||
|
||||
const conservativeSqrt = (a: number) => isNaN(a) ? NaN : Math.sqrt(a)
|
||||
|
@ -25,5 +24,3 @@ export const common = implementations<CommonSignature<number>>()
|
|||
}
|
||||
}})
|
||||
.ship()
|
||||
|
||||
$reflect!([common])
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import type {Complex} from '@/Complex/type'
|
||||
import {implementations} from '@/core/Dispatcher'
|
||||
import {$reflect} from '@/interfaces/type'
|
||||
import type {CommonSignature} from '@/interfaces/type'
|
||||
|
||||
export const number_type = {
|
||||
|
@ -30,5 +29,3 @@ export const common = implementations<CommonSignature<number>>()
|
|||
nan: a => NaN,
|
||||
re: a => a
|
||||
}).ship()
|
||||
|
||||
$reflect!([common])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue