Conversation
rename css interfaces tooPreview: docs |
src/plugins/typescript.ts
Outdated
|
|
||
| export interface ITypescriptPluginData { | ||
| ts: IInterfaceEntry[]; | ||
| export interface ITsPluginData { |
There was a problem hiding this comment.
I think all these sub interfaces are fine with the shortened "Ts" name, but this one in particular should match the name of the plugin so ITypescriptPluginData
| @@ -1,4 +1,4 @@ | |||
| - ts.sort((a, b) => a.name.localeCompare(b.name)) | |||
| - var toc = Object.keys(ts).sort((a, b) => a.localeCompare(b)) | |||
There was a problem hiding this comment.
heh, unobjectified then
There was a problem hiding this comment.
i don't understand your words?
There was a problem hiding this comment.
just that you changed this array to an object in this PR and now you're converting back to an array.
There was a problem hiding this comment.
well sure we need a sorted array for the table of contents. often both forms are needed at different times, so i guess it's a tradeoff either way.
There was a problem hiding this comment.
yeah im fine with these changes, just found it amusing
| return documentation; | ||
| } | ||
|
|
||
| public objectify<T>(array: T[], getKey: (item: T) => string) { |
There was a problem hiding this comment.
This doesn't really belong on the API, this is a stateless utility method.
There was a problem hiding this comment.
that is true but we don't have a place for such things
ITypescriptPluginDataPreview: docs |
|
Fine, but we need to move that objectify method eventually |
documentalist.objectifyfunction to convert array to map