TypeScript Class Inheritance

Descripción

Create a TypeScript class that extends a parent class


File Template: ❌


Prefix

class:extend


Scopes

typescript


Snippet de código

class ${2:ChildClass} extends ${1:ParentClass} {
	constructor(${3:args}: ${4:string}) {
		super($3);
		${5:// child attributes here}
	}

	${6:childMethod}(): void {
		${7:// TODO: implement method}
	}
}