This repository was archived by the owner on Sep 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Contact
Jonathan Montane edited this page Jan 31, 2017
·
1 revision
A Contact record represents the maintainer of the API. It has a few descriptive fields, which are name, url, email.
/* if in src/ */
import Contact from './models/Contact'Contact extends Immutable.Record using the following pattern:
import { Record } from 'immutable'
const Contact = Record({
name: null,
url: null,
email: null
})-
Contact.nameis the name of the maintainer or team of maintainers.
-
Contact.urlis the url at which more information about the team can be found.
-
Contact.emailis the email at which people can contact the maintaining team.
Please note that this example is abstract, and is there purely to represent the different interactions with Contact. The data may be non-sensical.
import Contact from './models/Contact'
const contact = new Contact({
name: 'John Smith',
url: 'http://example.com/maintainers',
email: 'john.smith@...'
})