created reusable text component, and setup typing for it automatically. also fixed bugs with autoload and scraper so that it would handle appending course name headers
This commit is contained in:
26
src/views/styles/fonts.module.scss.d.ts
vendored
Normal file
26
src/views/styles/fonts.module.scss.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
export interface IWeights {
|
||||
light: number;
|
||||
regular: number;
|
||||
medium: number;
|
||||
bold: number;
|
||||
semi_bold: number;
|
||||
black: number;
|
||||
}
|
||||
|
||||
export interface ISizes {
|
||||
x_small: number;
|
||||
small: number;
|
||||
medium: number;
|
||||
large: number;
|
||||
x_large: number;
|
||||
xx_large: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* This is a file that we need to create to tell typescript what the shape of the css modules is
|
||||
* when we import them into ts/tsx files
|
||||
*/
|
||||
export type IFonts = IWeights & ISizes;
|
||||
|
||||
declare const fonts: IFonts;
|
||||
export default fonts;
|
||||
Reference in New Issue
Block a user