mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Fix lint errors introduced in tslint@5.2 (#16330)
This commit is contained in:
@@ -42,8 +42,8 @@ class SnapCarouselTest extends React.Component<{}, {}> {
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1
|
||||
} as ViewStyle,
|
||||
},
|
||||
item: {
|
||||
width: 75
|
||||
} as ViewStyle
|
||||
}
|
||||
});
|
||||
|
||||
@@ -35,28 +35,28 @@ class SwiperTest extends React.Component<{}, {}> {
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
wrapper: {
|
||||
} as ViewStyle,
|
||||
},
|
||||
slide1: {
|
||||
flex: 1,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
backgroundColor: '#9DD6EB'
|
||||
} as ViewStyle,
|
||||
},
|
||||
slide2: {
|
||||
flex: 1,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
backgroundColor: '#97CAE5'
|
||||
} as ViewStyle,
|
||||
},
|
||||
slide3: {
|
||||
flex: 1,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
backgroundColor: '#92BBD9'
|
||||
} as ViewStyle,
|
||||
},
|
||||
text: {
|
||||
color: '#fff',
|
||||
fontSize: 30,
|
||||
fontWeight: 'bold'
|
||||
} as ViewStyle
|
||||
}
|
||||
});
|
||||
|
||||
@@ -78,24 +78,24 @@ const styles = StyleSheet.create<LocalStyles>(
|
||||
//alternative declaration of styles (inline typings)
|
||||
const stylesAlt = StyleSheet.create(
|
||||
{
|
||||
container: {
|
||||
flex: 1,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
container: {
|
||||
flex: 1,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
backgroundColor: '#F5FCFF',
|
||||
} as ViewStyle,
|
||||
welcome: {
|
||||
fontSize: 20,
|
||||
},
|
||||
welcome: {
|
||||
fontSize: 20,
|
||||
textAlign: 'center',
|
||||
margin: 10,
|
||||
} as TextStyle,
|
||||
margin: 10,
|
||||
},
|
||||
instructions: {
|
||||
textAlign: 'center',
|
||||
color: '#333333',
|
||||
textAlign: 'center',
|
||||
color: '#333333',
|
||||
marginBottom: 5,
|
||||
} as TextStyle
|
||||
}
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
class CustomView extends React.Component<{}, {}> {
|
||||
|
||||
|
||||
10
types/react-virtualized/dist/es/Grid.d.ts
vendored
10
types/react-virtualized/dist/es/Grid.d.ts
vendored
@@ -63,17 +63,11 @@ export type OverscanIndices = {
|
||||
|
||||
export type CellSizeAndPositionManager = {
|
||||
areOffsetsAdjusted(): boolean;
|
||||
configure({
|
||||
cellCount,
|
||||
estimatedCellSize
|
||||
}: ConfigureParams): void;
|
||||
configure({ cellCount, estimatedCellSize }: ConfigureParams): void;
|
||||
getCellCount(): number;
|
||||
getEstimatedCellSize(): number;
|
||||
getLastMeasuredIndex(): number;
|
||||
getOffsetAdjustment({
|
||||
containerSize,
|
||||
offset // safe
|
||||
}: ContainerSizeAndOffset): number;
|
||||
getOffsetAdjustment({ containerSize, offset/*safe*/ }: ContainerSizeAndOffset): number;
|
||||
/**
|
||||
* This method returns the size and position for the cell at the specified index.
|
||||
* It just-in-time calculates (or used cached values) for cells leading up to the index.
|
||||
|
||||
Reference in New Issue
Block a user