Skip to content

Commit

Permalink
refactor: rename type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Anderson committed Feb 2, 2022
1 parent 6b9dc07 commit fcac71d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/fortifyHeaders.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FortifyHeaders, FortifySettings, FortifyOptions } from './types';
import { FortifyHeaders, FortifySettings, GenerationOptions } from './types';
import { toHeaderCasing } from './directives/normalize';
import { getAllHeaders } from './headers';
import { HeaderFunction } from './headers/types';
Expand Down Expand Up @@ -30,7 +30,7 @@ function getConfig(
*/
export function fortifyHeaders(
settings: FortifySettings,
options: FortifyOptions = { useDefaults: false },
options: GenerationOptions = { useDefaults: false },
): FortifyHeaders {
const availableHeaders = getAllHeaders();
const headerConfig = options.useDefaults
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export type FortifySettings = { [key: string]: object | boolean } & {
/**
* Represents higher-order options for header config generation
*/
export type FortifyOptions = {
export type GenerationOptions = {
/**
* Directs FortifyJS to opt in or out of defaults
*/
Expand Down

0 comments on commit fcac71d

Please sign in to comment.