Skip to content

Commit

Permalink
avoid circular references
Browse files Browse the repository at this point in the history
  • Loading branch information
LunatiqueCoder committed Feb 12, 2023
1 parent c7f2cd2 commit aeacd15
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
25 changes: 25 additions & 0 deletions template/tamagui/global.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import {TamaguiInternalConfig} from 'tamagui';
import {shorthands} from '@tamagui/shorthands';
import {themes, tokens} from '@tamagui/theme-base';
import {media} from './mediaQueries';
import fonts from './fonts';

type animations = {
fast: {type: 'spring'; damping: number; mass: number; stiffness: number};
medium: {type: 'spring'; damping: number; mass: number; stiffness: number};
slow: {type: 'spring'; damping: number; stiffness: number};
};

declare module 'tamagui' {
interface TamaguiCustomConfig
extends TamaguiInternalConfig<
typeof tokens,
typeof themes,
typeof shorthands,
typeof media,
animations,
typeof fonts
> {}
}

export * from 'tamagui';
6 changes: 0 additions & 6 deletions template/tamagui/tamagui.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,4 @@ const appConfig = createTamagui({
//@ts-ignore
appConfig.mediaQueryDefaultActive = mediaQueryDefaultActive;

export type AppConfig = typeof appConfig;

declare module 'tamagui' {
interface TamaguiCustomConfig extends AppConfig {}
}

export default appConfig;

1 comment on commit aeacd15

@vercel
Copy link

@vercel vercel bot commented on aeacd15 Feb 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

luna – ./

luna-gamma.vercel.app
luna-git-master-criszz77.vercel.app
luna-criszz77.vercel.app

Please sign in to comment.