Skip to content

Commit

Permalink
refactor: moved FunctionResponse from functions/index.ts to functions.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Carr committed May 21, 2020
1 parent d403676 commit b8b92ba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/functions/response.ts → src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Response } from "got";
* The response returned by a function call
* to Moodle's Web Services API.
*/
export default interface FunctionResponse {
export interface FunctionResponse {
/**
* Returns the raw HTTP response returned
* from the API call for this function.
Expand Down
2 changes: 1 addition & 1 deletion src/modules/auth/email.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Module from "..";
import FunctionResponse from "../../functions/response";
import { FunctionResponse } from "../../functions";
import { Warning } from "../shared";

export interface SignUpSettingsResponse extends FunctionResponse {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/core/user.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Module from "..";
import FunctionResponse from "../../functions/response";
import { FunctionResponse } from "../../functions";
import { Warning, User } from "../shared";

interface SearchCriteria {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/core/webservice.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Module from "..";
import FunctionResponse from "../../functions/response";
import { FunctionResponse } from "../../functions";

interface WebServiceFunction {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/modules/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import qs from "qs";
import { Client } from "../client";
import FunctionResponse from "../functions/response";
import { FunctionResponse } from "../functions";

/**
* Attempts to handle a JSON body returned by a call to Moodle's Web Services API.
Expand Down

0 comments on commit b8b92ba

Please sign in to comment.