Skip to content

Commit

Permalink
Made options optional
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jun 6, 2024
1 parent 14b0f85 commit 130db22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Plugin } from "rollup";

import { buildHeader, type HeaderSpecUnion } from "./headers";

interface Options {
export interface Options {
fileName: string;
template: string | undefined;
headers: Array<HeaderSpecUnion>;
Expand All @@ -24,7 +24,7 @@ function buildHtaccessFile(options: Options, root: string): string {
return output;
}

export default function htaccess(opts: Partial<Options>): Plugin {
export default function htaccess(opts?: Partial<Options>): Plugin {
const options: Options = {
fileName: ".htaccess",
template: undefined,
Expand Down

0 comments on commit 130db22

Please sign in to comment.