This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Status = 'valid' | 'invalid'; | |
| @Component({ | |
| selector: 'app-component', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] | |
| }) | |
| export class AppComponent { | |
| profileForm = this.fb.group({ | |
| f1: [''], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const ts = require('typescript') | |
| const toCompile = ` | |
| import { SomeDecorator } from 'fictional-decorators'; | |
| class Compilee { | |
| constructor(@SomeDecorator() param) { } | |
| } | |
| ` | |
| const compiled = ts.transpileModule(toCompile, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Options, Vue, createDecorator } from "vue-class-component"; | |
| import { ComponentPropsOptions } from "vue"; | |
| import 'reflect-metadata'; | |
| type PropOptions = ComponentPropsOptions; | |
| type Constructor = { | |
| new(...args: any[]): any | |
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const range = (length: number) => Array.from({ length }, (_, i) => i) | |
| // JS version | |
| const rangeJs = length => Array.from({ length }, (_, i) => i) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dialog, | |
| dialog[open]::backdrop { | |
| visibility: hidden; | |
| opacity: 0; | |
| transition: visibility 0s linear 0.5s, opacity 0.5s linear; | |
| } | |
| dialog[open].fade-in, | |
| dialog[open].fade-in::backdrop { | |
| transition-delay: 0s; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Definition of arg fields for typesafe event handling. | |
| * | |
| * @example | |
| * { | |
| * parameters: 'param1' | 'param2' | |
| * arguments: 'arg1' | 'arg2' | |
| * } | |
| */ | |
| interface ParameterArgDefinition { |
OlderNewer