diff --git a/types/react-beautiful-dnd/index.d.ts b/types/react-beautiful-dnd/index.d.ts index 8d25e79407..3cb5e026f8 100644 --- a/types/react-beautiful-dnd/index.d.ts +++ b/types/react-beautiful-dnd/index.d.ts @@ -1,8 +1,9 @@ -// Type definitions for react-beautiful-dnd 6.0 +// Type definitions for react-beautiful-dnd 7.1 // Project: https://github.com/atlassian/react-beautiful-dnd // Definitions by: varHarrie // Bradley Ayers // Austin Turner +// Mark Nelissen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 @@ -84,8 +85,8 @@ export class Droppable extends React.Component {} */ export interface NotDraggingStyle { - transform: null | string; - transition: null | 'none'; + transform?: string; + transition?: 'none'; } export interface DraggingStyle { @@ -97,14 +98,14 @@ export interface DraggingStyle { top: number; left: number; margin: 0; - transform: null | string; + transform?: string; transition: 'none'; zIndex: ZIndex; } export interface DraggableProvidedDraggableProps { // inline style - style: null | DraggingStyle | NotDraggingStyle; + style?: DraggingStyle | NotDraggingStyle; // used for shared global styles 'data-react-beautiful-dnd-draggable': string; }