Skip to content

Instantly share code, notes, and snippets.

@nhathiwala
Created August 12, 2017 21:14
Show Gist options
  • Select an option

  • Save nhathiwala/1d8b5d8c1e76a061bbbd420f0057b496 to your computer and use it in GitHub Desktop.

Select an option

Save nhathiwala/1d8b5d8c1e76a061bbbd420f0057b496 to your computer and use it in GitHub Desktop.
firefunctions/src/models/index.ts
/*
* FILE NAME: index.ts
* FILE PATH: './models/'
* AUTHOR: NAYAN HATHIWALA
* CREATED ON: 10/8/2017
* DESCRIPTION: BASE Model.
*/
/*
* Example For 'Type'
*/
type TypeModelLocation = {
lat: number;
log: number;
};
/*
* Use in code
*
var location: TypeModelLocation = {
lat: -1.00000000,
log: -1.00000000
};
*/
/*
* Example For 'Interface'
*/
interface InterfaceModelLocation {
lat: number;
log: number;
}
/*
* Use in code
*
var location: InterfaceModelLocation = {
lat: -1.00000000,
log: -1.00000000
};
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment