mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
6
geopattern/index.d.ts
vendored
6
geopattern/index.d.ts
vendored
@@ -20,7 +20,7 @@ export interface PatternOptions {
|
||||
* Specify an exact background color. This is a CSS hexadecimal color
|
||||
* value.
|
||||
*/
|
||||
color: string;
|
||||
color?: string;
|
||||
|
||||
/**
|
||||
* Controls the relative background color of the generated image. The color
|
||||
@@ -28,14 +28,14 @@ export interface PatternOptions {
|
||||
* by the generator. This is a CSS hexadecimal color value, which defaults
|
||||
* to #933c3c.
|
||||
*/
|
||||
baseColor: string;
|
||||
baseColor?: string;
|
||||
|
||||
/**
|
||||
* Determines the pattern. All of the original patterns from the Ruby
|
||||
* version at jasonlong/geo_pattern are available in this port, and their
|
||||
* names are camelCased.
|
||||
*/
|
||||
generator: GeneratorType;
|
||||
generator?: GeneratorType;
|
||||
}
|
||||
|
||||
export type GeneratorType = 'chevrons' | 'octagons' | 'overlappingCircles' |
|
||||
|
||||
Reference in New Issue
Block a user