Skip to content

Instantly share code, notes, and snippets.

View cyrilletuzi's full-sized avatar

Cyrille Tuzi cyrilletuzi

View GitHub Profile
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-explicit-any": "error"
}
}
function test(hello: any, world = '') {
hello; // any
world; // string
}
{
"compilerOptions": {
"strict": true
}
}
function test(hello: string, world = '') {
hello; // string
world; // string
}
function test(hello, world = '') {
hello; // any
world; // string
}
const routes: Routes = [
{ path: 'admin', loadChildren: () => import('./admin/admin.module').then((m) => m.AdminModule)}
];
<my-slideshow></my-slideshow>
$('#slideshow').slideshow();
const recette = new RecetteDeMousseAuChocolat();
recette.faireLaMousse();
class RecetteDeMousseAuChocolat {
oeufs = 5;
chocolat = '200g';
cuireAuBainMarie() {
// Cuit le chocolat au bain marie
cuire(this.chocolat);
}