move Tamagui augmentation to config file
This commit is contained in:
parent
7671c24b72
commit
5f7b279bfe
|
@ -1,11 +0,0 @@
|
||||||
// eslint-disable-next-line eslint-comments/disable-enable-pair
|
|
||||||
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
||||||
import { config } from './tamagui.config'
|
|
||||||
|
|
||||||
export type Conf = typeof config
|
|
||||||
|
|
||||||
declare module '@tamagui/core' {
|
|
||||||
interface TamaguiCustomConfig extends Conf {}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default config
|
|
|
@ -7,6 +7,13 @@ import { animations } from './animations'
|
||||||
import { themes } from './themes'
|
import { themes } from './themes'
|
||||||
import { tokens } from './tokens'
|
import { tokens } from './tokens'
|
||||||
|
|
||||||
|
export type Conf = typeof config
|
||||||
|
|
||||||
|
declare module '@tamagui/core' {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||||
|
interface TamaguiCustomConfig extends Conf {}
|
||||||
|
}
|
||||||
|
|
||||||
const interFont = createInterFont({
|
const interFont = createInterFont({
|
||||||
size: {
|
size: {
|
||||||
6: 11,
|
6: 11,
|
||||||
|
|
Loading…
Reference in New Issue