Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Add d.ts files to built artifacts #6

Merged
merged 6 commits into from
Jul 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
186 changes: 8 additions & 178 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"description": "React component library for 5 Calls webapp",
"main": "lib/index.js",
"scripts": {
"build": "npm run rm-node-types && tsc",
"build": "npm run rm-node-types && npm run clean-build && tsc",
"rm-node-types": "rm -rf ./node_modules/@types/node",
"clean-build": "rm -rf ./lib",
"test": "jest"
},
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/faq/Faq.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as React from 'react';
import * as Constants from '../shared/constants';

export interface Props {
export interface FaqProps {
}

export const Faq: React.StatelessComponent<Props> = (props: Props) => {
export const Faq: React.StatelessComponent<FaqProps> = (props: FaqProps) => {
return (
<main id="content" role="main" className="layout__main">
<div className="about">
Expand Down
8 changes: 4 additions & 4 deletions src/login/Auth0Callback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ import { Redirect } from 'react-router';
import { LoginService } from './LoginService';
import { AuthResponse, Auth0Config } from '../shared/model';

interface Props {
export interface Auth0CallbackProps {
readonly auth0Config: Auth0Config;
readonly redirectPath?: string;
handleAuthentication: (authResponse: AuthResponse) => Promise<AuthResponse>;
}

interface State {
export interface Auth0CallbackState {
doneRedirect: boolean;
}

export class Auth0Callback extends React.Component<Props, State> {
export class Auth0Callback extends React.Component<Auth0CallbackProps, Auth0CallbackState> {
loginService: LoginService;

constructor(props: Props) {
constructor(props: Auth0CallbackProps) {
super(props);
this.state = {doneRedirect: false};
this.loginService = new LoginService(this.props.auth0Config);
Expand Down
Loading