Skip to content

Instantly share code, notes, and snippets.

@bcherny
Created June 14, 2016 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bcherny/81a016bfcd243652d15ee541c8e2be13 to your computer and use it in GitHub Desktop.
Save bcherny/81a016bfcd243652d15ee541c8e2be13 to your computer and use it in GitHub Desktop.
angular.module('foo').factory('MyModal', function(Modal) {
return class MyModal extends Modal {
constructor(message: string) {
const options = {
message,
height: 400,
width: 600
}
super(options)
}
}
})
import {Modal} from './interfaces'
export interface MyModal extends Modal {
new(message: string): this
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment