Skip to content

Instantly share code, notes, and snippets.

View gotbahn's full-sized avatar
🐙

Bogdan Plieshka gotbahn

🐙
View GitHub Profile
const seasons = Object.freeze({
AUTUMN: 'autumn',
SPRING: 'spring',
SUMMER: 'summer',
WINTER: 'winter',
});
const season = seasons.spring;
/**
* @type {season}
*/
const season = 'summer';
/**
* @typedef {'autumn' | 'spring' | 'summer' | 'winter'} season
**/
import * as seasons from './seasons';
/**
* @param {number} month
* @returns {season}
**/
const getSummer = (month) => {
if ([5, 6, 7].includes(month)) {
return seasons.SUMMER;
}
export const AUTUMN = 'autumn';
export const SPRING = 'spring';
export const SUMMER = 'summer';
export const WINTER = 'winter';
import * as seasons from './seasons';
export type season = typeof seasons[keyof typeof seasons];
.component {
<<<<<<< HEAD
padding: 1em 0.5em 3em;
=======
padding: 2em 0.5em 1em;
>>>>>>> my-branch
}
.component {
margin-top: 1em;
}
.component__centred {
margin: 0 auto;
}
.component {
margin-top: 1em;
margin: 0 auto;
}
.component {
margint-top: 1em;
}
.component {
background-image: url(images/bg.gif);
background-position-x: left;
background-position-y: top;
background-repeat-x: no-repeat;
background-repeat-y: no-repeat;
background-color: #000;
}