Skip to content

Instantly share code, notes, and snippets.

@ca0v
Created December 5, 2013 17:24
Show Gist options
  • Save ca0v/7809609 to your computer and use it in GitHub Desktop.
Save ca0v/7809609 to your computer and use it in GitHub Desktop.
First attempt at creating a typescript interface for the GeoServer "grass" SLD. Notice "Grass" is in the definition!
interface IGrassTestStyledLayerDescriptor {
version: string;
namedLayers: {
Grass: {
userStyles: Array<{
defaultsPerSymbolizer: boolean;
rules: Array<{
symbolizer: {
Polygon: {
fill: boolean;
stroke: boolean;
strokeColor: string;
strokeWidth: string;
};
};
id: string;
name: string;
description: string;
}>;
name: string;
title: string;
description: string;
propertyStyles: any;
defaultStyle: {
fillColor: string;
fillOpacity: number;
strokeColor: string;
strokeOpacity: number;
strokeWidth: number;
strokeDashstyle: string;
pointRadius: number;
graphicName: string;
};
id: string;
layerName: string;
}>;
namedStyles: Array<any>;
name: string;
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment