@codemirror/state#Facet TypeScript Examples

The following examples show how to use @codemirror/state#Facet. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.ts    From codemirror-languageserver with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
client = Facet.define<LanguageServerClient, LanguageServerClient>({ combine: useLast })
Example #2
Source File: index.ts    From codemirror-languageserver with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
documentUri = Facet.define<string, string>({ combine: useLast })
Example #3
Source File: index.ts    From codemirror-languageserver with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
languageId = Facet.define<string, string>({ combine: useLast })
Example #4
Source File: helpers.ts    From obsidian-banners with MIT License 5 votes vote down vote up
bannerDecorFacet = Facet.define<ISettingsOptions, PartialSettings>({
  combine: (settings) => combineSettings(settings, bannerDecorKeys),
  compare: (a, b) => isEqual(a, b)
})
Example #5
Source File: helpers.ts    From obsidian-banners with MIT License 5 votes vote down vote up
iconDecorFacet = Facet.define<ISettingsOptions, PartialSettings>({
  combine: (settings) => combineSettings(settings, iconDecorKeys),
  compare: (a, b) => isEqual(a, b)
})