Skip to content

Commit

Permalink
Templates: Export ButtonProps and HeaderProps interfaces
Browse files Browse the repository at this point in the history
Export the ButtonProps and HeaderProps interfaces to make them accessible to avoid issues with Typescript relying on exported interfaces when declaration files should be created.
  • Loading branch information
valentinpalkovic committed Jul 8, 2024
1 parent d5b0fb7 commit fd4d89e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/template/cli/ts-3-8/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import './button.css';

interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/template/cli/ts-3-8/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type User = {
name: string;
};

interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/template/cli/ts-4-9/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import './button.css';

interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/template/cli/ts-4-9/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type User = {
name: string;
};

interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/react/template/cli/ts-3-8/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import './button.css';

interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/react/template/cli/ts-3-8/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type User = {
name: string;
};

interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/react/template/cli/ts-4-9/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import './button.css';

interface ButtonProps {
export interface ButtonProps {
/**
* Is this the principal call to action on the page?
*/
Expand Down
2 changes: 1 addition & 1 deletion code/renderers/react/template/cli/ts-4-9/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type User = {
name: string;
};

interface HeaderProps {
export interface HeaderProps {
user?: User;
onLogin?: () => void;
onLogout?: () => void;
Expand Down

0 comments on commit fd4d89e

Please sign in to comment.