Skip to content

Commit c3cc38a

Browse files
committed
fix: d.ts for hat
1 parent 9fc4c43 commit c3cc38a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

demo/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default class App extends Component {
1212
this.state = {
1313
currentTab: "single",
1414
config: genConfig({ hairColorRandom: true }),
15-
theme: window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches && 'dark' || "light"
15+
theme: window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches && "dark" || "light"
1616
};
1717
}
1818

react-nice-avatar.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export interface AvatarConfig {
99
faceColor?: string,
1010
earSize?: 'small' | 'big',
1111
hairColor?: string,
12-
hairStyle?: 'normal' | 'thick' | 'mohawk' | 'womanLong' | 'womanShort' | 'beanie' |'turban',
12+
hairStyle?: 'normal' | 'thick' | 'mohawk' | 'womanLong' | 'womanShort',
13+
hatColor?: string,
14+
hatStyle?: 'beanie' |'turban' | 'none',
1315
eyeStyle?: 'circle' | 'oval' | 'smile',
1416
glassesStyle?: 'round' | 'square' | 'none',
1517
noseStyle?: 'short' | 'long' | 'round',

0 commit comments

Comments
 (0)