Skip to content

Commit

Permalink
Converts interface names
Browse files Browse the repository at this point in the history
  • Loading branch information
coconutcraig committed Nov 17, 2018
1 parent 12da14d commit 796b66e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/models/answer.ts
@@ -1,8 +1,8 @@
import { Answerable } from '../types/models';
import { AnswerableParameters } from '../types/parameters';
import { AnswerModel } from '../types/models';
import { AnswerParameters } from '../types/parameters';

export default class Answer implements Answerable {
protected attributes: AnswerableParameters;
export default class Answer implements AnswerModel {
protected attributes: AnswerParameters;

constructor() {
this.attributes = {
Expand Down
8 changes: 4 additions & 4 deletions src/models/preference.ts
@@ -1,11 +1,11 @@
import { Preferable } from '../types/models';
import { PreferableParameters } from '../types/parameters';
import { PreferenceModel } from '../types/models';
import { PreferenceParameters } from '../types/parameters';

const NEXT_AVAILABLE = 1;
const CERTAIN_DAYS = 2;

export default class Preference implements Preferable {
protected attributes: PreferableParameters;
export default class Preference implements PreferenceModel {
protected attributes: PreferenceParameters;

constructor() {
this.attributes = {
Expand Down
4 changes: 2 additions & 2 deletions src/types/models.d.ts
@@ -1,10 +1,10 @@
export interface Answerable {
export interface AnswerModel {
for(question: number): this;

is(value: string): this;
}

export interface Preferable {
export interface PreferenceModel {
between(start: string, end: string): this;

next(): this;
Expand Down
4 changes: 2 additions & 2 deletions src/types/parameters.d.ts
@@ -1,4 +1,4 @@
export interface AnswerableParameters {
export interface AnswerParameters {
question: number | null;
value: string | null;
}
Expand All @@ -9,7 +9,7 @@ export interface LocationParameters {
user?: number | string;
}

export interface PreferableParameters {
export interface PreferenceParameters {
day?: number | null;
end?: string | null;
start?: string | null;
Expand Down

0 comments on commit 796b66e

Please sign in to comment.