Skip to content

Commit

Permalink
refactor: use types instead of interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicsh committed Dec 11, 2023
1 parent 5057944 commit d4c1b74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/helpers/same-family-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ function getFamilyName(name: string) {
return familyName;
}

interface ISameFamilyNameOptions {
type ISameFamilyNameOptions = {
locale?: ILocale;
}
};

export function sameFamilyName(
input: string,
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/split-by-conjunction.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { ILocale } from "../split-names-list.d";
import { conjunctionsPerLocale } from "./conjunctions";

interface ISplitByConjunctionOptions {
type ISplitByConjunctionOptions = {
locale: ILocale;
}
};

export function splitByConjunction(
input: string,
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { sameFamilyName } from "./helpers/same-family-name";
import { splitByConjunction } from "./helpers/split-by-conjunction";
import type { ILocale } from "./split-names-list.d";

interface ISplitNamesListOptions {
type ISplitNamesListOptions = {
locale: ILocale;
}
};

function splitNamesList(
input?: string | null,
Expand Down

0 comments on commit d4c1b74

Please sign in to comment.